get_field_input_names#

TwinModel.get_field_input_names(rom_name)#

Get the list of input fields names associated to the TBROM named rom_name

Parameters:
rom_namestr

Name of the ROM. To get a list of available ROMs, see the pytwin.TwinModel.tbrom_names attribute.

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_input_names(model.tbrom_names[0])