gemseo / disciplines

utils module

A set of functions to handle disciplines.

gemseo.disciplines.utils.get_all_inputs(disciplines, skip_scenarios=True)[source]

Return all the input names of the disciplines.

Parameters
  • disciplines (Iterable[MDODiscipline]) – The disciplines including potentially Scenario objects.

  • skip_scenarios (bool) –

    If True, skip the Scenario objects. Otherwise, consider their disciplines.

    By default it is set to True.

Returns

The names of the inputs.

Return type

list[str]

gemseo.disciplines.utils.get_all_outputs(disciplines, skip_scenarios=True)[source]

Return all the output names of the disciplines.

Parameters
  • disciplines (Iterable[MDODiscipline]) – The disciplines including potentially Scenario objects.

  • skip_scenarios (bool) –

    If True, skip the Scenario objects. Otherwise, consider their disciplines.

    By default it is set to True.

Returns

The names of the outputs.

Return type

list[str]