fastoad.testing module

Convenience utilities for testing.

fastoad.testing.run_system(component: openmdao.core.system.System, input_vars: Union[openmdao.core.indepvarcomp.IndepVarComp, fastoad.openmdao.variables.variable_list.VariableList], **kwargs) fastoad.openmdao.problem.FASTOADProblem[source]

Runs and returns an OpenMDAO problem with provided component and data.

An error is raised if at least one variable has NaN value despite provided values in input_vars. The raised error lists the identified variables.

Parameters
  • component – OpenMDAO component to be run

  • input_vars – input data for the component

  • kwargs – options of fastoad.api.BaseCycleGroup, to add control solvers in the problem

Returns

a FASTOADProblem instance