gemseo / mda

Show inherited members

mda_factory module

A factory to instantiate MDA from their class names.

class gemseo.mda.mda_factory.MDAFactory[source]

Bases: BaseFactory

MDA factory to create the MDA from a name or a class.

Return type:

Any

create(mda_name, disciplines, **options)[source]

Create an MDA.

Parameters:
  • mda_name (str) – The name of the MDA (its class name).

  • disciplines (Sequence[MDODiscipline]) – The disciplines.

  • **options (MDAOptionType) – The options of the MDA.

Returns:

The instance of the class.

Raises:

TypeError – If the class cannot be instantiated.

Return type:

MDA

failed_imports: dict[str, str]

The class names bound to the import errors.

property mdas: list[str]

The names of the available MDAs.