fastoad.testing module
Convenience utilities for testing.
- fastoad.testing.run_system(component: System, input_vars: IndepVarComp | VariableList, **kwargs) 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