fastoad.gui.optimization_viewer module¶
Defines the variable viewer for postprocessing
-
class
fastoad.gui.optimization_viewer.
OptimizationViewer
[source]¶ Bases:
object
A class for interacting with FAST-OAD Problem optimization information.
-
problem_configuration
: fastoad.io.configuration.configuration.FASTOADProblemConfigurator¶ Instance of the FAST-OAD problem configuration
-
dataframe
¶ The dataframe which is the mirror of self.file
-
load
(problem_configuration: fastoad.io.configuration.configuration.FASTOADProblemConfigurator)[source]¶ Loads the FAST-OAD problem and stores its data.
- Parameters
problem_configuration – the FASTOADProblem instance.
-
save
()[source]¶ Save the optimization to the files. Possible files modified are:
the .yml configuration file
the input file (initial values)
the output file (values)
-
display
()[source]¶ Displays the datasheet. load() must be ran before.
- Returns
display of the user interface:
-
load_variables
(variables: fastoad.openmdao.variables.VariableList, attribute_to_column: Optional[Dict[str, str]] = None)[source]¶ Loads provided variable list and replace current data set.
- Parameters
variables – the variables to load
attribute_to_column – dictionary keys tell what variable attributes are kept and the values tell what name will be displayed. If not provided, default translation will apply.
-
get_variables
(column_to_attribute: Optional[Dict[str, str]] = None) → fastoad.openmdao.variables.VariableList[source]¶ - Parameters
column_to_attribute – dictionary keys tell what columns are kept and the values tell whatvariable attribute it corresponds to. If not provided, default translation will apply.
- Returns
a variable list from current data set
-