6.2.12. load_inputs

load_inputs()[source]

Defines a module to load the input file of the CO2MPAS model.

Loads from files the inputs for the CO2MPAS model.

digraph dmap { node [style=filled] label = <dmap> splines = ortho style = filled 176 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">cache_file_name</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="File path."] 177 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-4acc3ac54630cd8af3d355d4e2cf9388f1bd02d9/save_dill.html">cache_parsed_data</TD></TR></TABLE>> fillcolor=springgreen shape=box tooltip=cache_parsed_data] 178 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-4acc3ac54630cd8af3d355d4e2cf9388f1bd02d9/get_cache_fpath.html">get_cache_fpath</TD></TR></TABLE>> fillcolor=springgreen shape=box tooltip=get_cache_fpath] 179 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">input_file</TD></TR><TR><TD align="RIGHT" border="1">default</TD><TD align="LEFT" border="1">None</TD></TR><TR><TD align="RIGHT" border="1">initial_dist</TD><TD align="LEFT" border="1">10</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip=input_file] 180 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">input_file_name</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="File path."] 181 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-4acc3ac54630cd8af3d355d4e2cf9388f1bd02d9/load_from_dill.html">load_data_from_cache</TD></TR><TR><TD align="RIGHT" border="1">input_domain</TD><TD align="LEFT" border="1" href="./dispatcher-4acc3ac54630cd8af3d355d4e2cf9388f1bd02d9/check_cache_fpath_exists.html">check_cache_fpath_exists</TD></TR></TABLE>> fillcolor=springgreen shape=box tooltip="Load inputs from .dill file."] 182 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-4acc3ac54630cd8af3d355d4e2cf9388f1bd02d9/load_from_dill-0.html">load_from_dill</TD></TR><TR><TD align="RIGHT" border="1">input_domain</TD><TD align="LEFT" border="1" href="./dispatcher-4acc3ac54630cd8af3d355d4e2cf9388f1bd02d9/check_file_format.html">check_file_format</TD></TR><TR><TD align="RIGHT" border="1">weight</TD><TD align="LEFT" border="1">5</TD></TR></TABLE>> fillcolor=springgreen shape=box tooltip="Load inputs from .dill file."] 183 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-4acc3ac54630cd8af3d355d4e2cf9388f1bd02d9/lasso.html">load_from_xlasso</TD></TR><TR><TD align="RIGHT" border="1">input_domain</TD><TD align="LEFT" border="1" href="./dispatcher-4acc3ac54630cd8af3d355d4e2cf9388f1bd02d9/check_xlasso.html">check_xlasso</TD></TR><TR><TD align="RIGHT" border="1">weight</TD><TD align="LEFT" border="1">5</TD></TR></TABLE>> fillcolor=springgreen shape=box tooltip="High-level function to :term:`lasso` around spreadsheet's rect-regions according to :term:`xl-ref` strings by using internally a :class:`Ranger` ."] 184 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">overwrite_cache</TD></TR><TR><TD align="RIGHT" border="1">default</TD><TD align="LEFT" border="1">False</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip=overwrite_cache] 185 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-4acc3ac54630cd8af3d355d4e2cf9388f1bd02d9/parse_excel_file.html">parse_excel_file</TD></TR><TR><TD align="RIGHT" border="1">input_domain</TD><TD align="LEFT" border="1" href="./dispatcher-4acc3ac54630cd8af3d355d4e2cf9388f1bd02d9/check_file_format-0.html">check_file_format</TD></TR><TR><TD align="RIGHT" border="1">weight</TD><TD align="LEFT" border="1">5</TD></TR></TABLE>> fillcolor=springgreen shape=box tooltip="Reads cycle's data and simulation plans."] 186 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">raw_data</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="Input data."] 187 [label=sink fillcolor=black fontcolor=white shape=egg] 184 -> 181 180 -> 178 183 -> 186 185 -> 186 176 -> 177 178 -> 176 185 -> 179 176 -> 181 186 -> 177 180 -> 183 180 -> 185 181 -> 186 180 -> 182 180 -> 181 182 -> 186 177 -> 187 }

load_inputs’ data
cache_file_name File path.
input_file  
input_file_name File path.
overwrite_cache  
raw_data Input data.
sink Sink node of the dispatcher that collects all unused outputs.
load_inputs’ functions
cache_parsed_data  
get_cache_fpath  
load_data_from_cache Load inputs from .dill file.
load_from_dill Load inputs from .dill file.
load_from_xlasso High-level function to lasso around spreadsheet’s rect-regions according to xl-ref strings by using internally a Ranger .
parse_excel_file Reads cycle’s data and simulation plans.
Returns:The load input module.
Return type:SubDispatchFunction