6.3.14. run_base

run_base()[source]

Defines the vehicle-processing model.

Processes a vehicle from the file path to the write of its outputs.

digraph dmap { node [style=filled] label = <dmap> splines = ortho style = filled 0 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-68cc624eadc0ec2ef6a430a10ca98e61e904ea09/CO2MPAS_model.html">CO2MPAS model</TD></TR></TABLE>> fillcolor=yellow shape=note style=filled tooltip="Calibrates the models with WLTP data and predicts NEDC cycle."] 1 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">data</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip=data] 2 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-68cc624eadc0ec2ef6a430a10ca98e61e904ea09/default_output_file_name.html">default_output_file_name</TD></TR></TABLE>> fillcolor=springgreen shape=box tooltip="Returns the output file name."] 3 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-68cc624eadc0ec2ef6a430a10ca98e61e904ea09/default_start_time.html">default_start_time</TD></TR></TABLE>> fillcolor=springgreen shape=box tooltip="Returns the default run start time."] 4 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-68cc624eadc0ec2ef6a430a10ca98e61e904ea09/default_timestamp.html">default_timestamp</TD></TR></TABLE>> fillcolor=springgreen shape=box tooltip="Returns the default timestamp."] 5 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-68cc624eadc0ec2ef6a430a10ca98e61e904ea09/default_vehicle_name.html">default_vehicle_name</TD></TR></TABLE>> fillcolor=springgreen shape=box tooltip="Returns the vehicle name."] 6 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">dice</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip=dice] 7 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">dsp_solution</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="Co2mpas model after dispatching."] 8 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">encryption_keys</TD></TR><TR><TD align="RIGHT" border="1">default</TD><TD align="LEFT" border="1">/home/docs/DICE_KEYS/dice.co2mpas.keys</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip=encryption_keys] 9 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">engineering_mode</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=engineering_mode] 10 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">flag</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip=flag] 11 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-68cc624eadc0ec2ef6a430a10ca98e61e904ea09/get_template_file_name.html">get_template_file_name</TD></TR></TABLE>> fillcolor=springgreen shape=box tooltip="Returns the template file name."] 12 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">input_file</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip=input_file] 13 [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."] 14 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-68cc624eadc0ec2ef6a430a10ca98e61e904ea09/make_report.html">make_report</TD></TR></TABLE>> fillcolor=yellowgreen shape=note style=filled tooltip="Produces a vehicle report from CO2MPAS outputs."] 15 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">meta</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip=meta] 16 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">only_summary</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=only_summary] 17 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">output_data</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip=":return:"] 18 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">output_file</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip=output_file] 19 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">output_file_name</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="File name where to plot the workflow."] 20 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">output_folder</TD></TR><TR><TD align="RIGHT" border="1">default</TD><TD align="LEFT" border="1">.</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="Output folder."] 21 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">output_ta_file</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip=output_ta_file] 22 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">output_template</TD></TR><TR><TD align="RIGHT" border="1">default</TD><TD align="LEFT" border="1">/home/docs/checkouts/readthedocs.org/user_builds/co2mpas-ta/checkouts/co2sim-v2.1.0rc1/pCO2SIM/src/co2mpas/co2mpas_output_template.xlsx</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="Template output."] 23 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-68cc624eadc0ec2ef6a430a10ca98e61e904ea09/parse_dsp_solution.html">parse_dsp_solution</TD></TR></TABLE>> fillcolor=springgreen shape=box tooltip="Parses the co2mpas model results."] 24 [label=plot fillcolor=gold shape=egg] 25 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-68cc624eadc0ec2ef6a430a10ca98e61e904ea09/plot_model_workflow.html">plot_model_workflow</TD></TR><TR><TD align="RIGHT" border="1">input_domain</TD><TD align="LEFT" border="1" href="./dispatcher-68cc624eadc0ec2ef6a430a10ca98e61e904ea09/check_first_arg.html">check_first_arg</TD></TR><TR><TD align="RIGHT" border="1">weight</TD><TD align="LEFT" border="1">30</TD></TR></TABLE>> fillcolor=springgreen shape=box tooltip="Defines the kwargs to plot the dsp workflow."] 26 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">plot_workflow</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip=plot_workflow] 27 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">report</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip=report] 28 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">run_base</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip=run_base] 29 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">sign_key</TD></TR><TR><TD align="RIGHT" border="1">default</TD><TD align="LEFT" border="1">/home/docs/DICE_KEYS/sign.co2mpas.key</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip=sign_key] 30 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">soft_validation</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=soft_validation] 31 [label=start fillcolor=red shape=egg] 32 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">start_time</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="Run start time."] 33 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">summary</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip=summary] 34 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">template_file_name</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="Template file name."] 35 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">timestamp</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="Run timestamp."] 36 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">type_approval_mode</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip=type_approval_mode] 37 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">use_selector</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=use_selector] 38 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-68cc624eadc0ec2ef6a430a10ca98e61e904ea09/validate_base.html">validate_base</TD></TR><TR><TD align="RIGHT" border="1">input_domain</TD><TD align="LEFT" border="1" href="./dispatcher-68cc624eadc0ec2ef6a430a10ca98e61e904ea09/check_first_arg-0.html">check_first_arg</TD></TR><TR><TD align="RIGHT" border="1">weight</TD><TD align="LEFT" border="1">10</TD></TR></TABLE>> fillcolor=springgreen shape=box tooltip=validate_base] 39 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-68cc624eadc0ec2ef6a430a10ca98e61e904ea09/validate_dice.html">validate_dice</TD></TR></TABLE>> fillcolor=springgreen shape=box tooltip=validate_dice] 40 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-68cc624eadc0ec2ef6a430a10ca98e61e904ea09/validate_meta.html">validate_meta</TD></TR></TABLE>> fillcolor=springgreen shape=box tooltip=validate_meta] 41 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">validated_base</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip=validated_base] 42 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">validated_dice</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip=validated_dice] 43 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">validated_meta</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip=validated_meta] 44 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">vehicle_family_id</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip=vehicle_family_id] 45 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2">vehicle_name</TD></TR></TABLE>> fillcolor=cyan shape=box style="rounded,filled" tooltip="File name."] 46 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-68cc624eadc0ec2ef6a430a10ca98e61e904ea09/write_outputs.html">write_outputs</TD></TR><TR><TD align="RIGHT" border="1">input_domain</TD><TD align="LEFT" border="1" href="./dispatcher-68cc624eadc0ec2ef6a430a10ca98e61e904ea09/lambda.html">&lt;lambda&gt;</TD></TR></TABLE>> fillcolor=yellowgreen shape=note style=filled tooltip="Writes on files the outputs of the CO2MPAS model."] 47 [label=<<TABLE border="0" cellspacing="0"><TR><TD border="0" colspan="2" href="./dispatcher-68cc624eadc0ec2ef6a430a10ca98e61e904ea09/write_ta_output.html">write_ta_output</TD></TR><TR><TD align="RIGHT" border="1">input_domain</TD><TD align="LEFT" border="1" href="./dispatcher-68cc624eadc0ec2ef6a430a10ca98e61e904ea09/check_first_arg-1.html">check_first_arg</TD></TR></TABLE>> fillcolor=yellowgreen shape=note style=filled tooltip=write_ta_output] 19 -> 46 10 -> 46 3 -> 32 42 -> 0 25 -> 24 32 -> 47 41 -> 0 47 -> 21 18 -> 47 22 -> 11 11 -> 34 8 -> 47 2 -> 19 36 -> 46 37 -> 38 14 -> 27 34 -> 46 27 -> 46 16 -> 46 15 -> 47 45 -> 2 23 -> 17 45 -> 14 14 -> 33 0 -> 7 20 -> 2 29 -> 47 42 -> 47 32 -> 4 31 -> 3 15 -> 40 19 -> 25 43 -> 0 27 -> 47 28 -> 38 46 -> 18 40 -> 43 26 -> 25 30 -> 40 39 -> 42 38 -> 41 35 -> 47 13 -> 11 7 -> 23 9 -> 38 36 -> 47 44 -> 47 35 -> 2 1 -> 38 1 -> 47 30 -> 38 17 -> 14 4 -> 35 5 -> 45 6 -> 39 20 -> 47 12 -> 47 13 -> 5 32 -> 46 45 -> 25 }

run_base’s data
data  
dice  
dsp_solution Co2mpas model after dispatching.
encryption_keys  
engineering_mode  
flag  
input_file  
input_file_name File path.
meta  
only_summary  
output_data
return:
output_file  
output_file_name File name where to plot the workflow.
output_folder Output folder.
output_ta_file  
output_template Template output.
plot It constructs a unique constant that behaves like a string.
plot_workflow  
report  
run_base  
sign_key  
soft_validation  
start Starting node that identifies initial inputs of the workflow.
start_time Run start time.
summary  
template_file_name Template file name.
timestamp Run timestamp.
type_approval_mode  
use_selector  
validated_base  
validated_dice  
validated_meta  
vehicle_family_id  
vehicle_name File name.
run_base’s functions
default_output_file_name Returns the output file name.
default_start_time Returns the default run start time.
default_timestamp Returns the default timestamp.
default_vehicle_name Returns the vehicle name.
get_template_file_name Returns the template file name.
parse_dsp_solution Parses the co2mpas model results.
plot_model_workflow Defines the kwargs to plot the dsp workflow.
validate_base  
validate_dice  
validate_meta  
run_base’s dispatchers
CO2MPAS model Calibrates the models with WLTP data and predicts NEDC cycle.
make_report Produces a vehicle report from CO2MPAS outputs.
write_outputs Writes on files the outputs of the CO2MPAS model.
write_ta_output write_ta_output
Returns:The vehicle-processing model.
Return type:Dispatcher