get_field_output_name#
- TwinModel.get_field_output_name(rom_name)#
Get the output field name associated to the TBROM named rom_name
- Parameters:
- rom_name
str
Name of the ROM. To get a list of available ROMs, see the
pytwin.TwinModel.tbrom_names
attribute.
- rom_name
- Raises:
- TwinModelError:
If
TwinModel
object does not include any TBROMs. If the provided ROM name is not available.
Examples
>>> from pytwin import TwinModel >>> model = TwinModel(model_filepath='path_to_twin_model_with_TBROM_in_it.twin') >>> model.get_field_output_name(model.tbrom_names[0])