get_named_selections#

TwinModel.get_named_selections(rom_name)#

Get the list of named selections associated to the TBROM named rom_name

Parameters:
rom_namestr

Name of the TBROM. To get a list of available TBROMs, 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_named_selections(model.tbrom_names[0])