pymrio.IOSystem.get_extensions

IOSystem.get_extensions(names=None, data=False, instance_names=True)

Yields the extensions or their names

Parameters
  • like (names = str or list) – Extension names to yield. If None (default), all extensions are yielded. This can be used to convert from set names to instance names and vice versa or to harmonize a list of extensions.

  • optional – Extension names to yield. If None (default), all extensions are yielded. This can be used to convert from set names to instance names and vice versa or to harmonize a list of extensions.

  • data (boolean, optional) – If True, returns a generator which yields the extensions. If False, returns a generator which yields the names of the extensions (default)

  • instance_names (boolean, optional) – If True, returns the name of the instance, otherwise the set (custom) name of the extension. (default: True) For example, the test mrio has a extension named ‘Factor Inputs’ (get it with mrio.factor_inputs.name), and an instance name ‘factor_inputs’.

Return type

Generator for Extension or string