fastoad.utils.postprocessing.optimization_viewer module¶
Defines the variable viewer for postprocessing
-
class
fastoad.utils.postprocessing.optimization_viewer.
OptimizationViewer
[source]¶ Bases:
object
A class for interacting with FAST-OAD Problem optimization information.
-
display
()[source]¶ Displays the datasheet. load() must be ran before.
- Returns
display of the user interface:
-
get_variables
(column_to_attribute: 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
-
load
(problem_configuration: fastoad.io.configuration.configuration.FASTOADProblemConfigurator)[source]¶ Loads the FAST-OAD problem and stores its data.
- Parameters
problem_configuration – the FASTOADProblem instance.
file_formatter – the formatter that defines file format. If not provided, default format will be assumed.
-
load_variables
(variables: fastoad.openmdao.variables.VariableList, attribute_to_column: 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.
-