6.2.5.1. Constants

class Constants[source]

Methods

clear
copy
dump
from_dict
fromkeys Returns a new dict with keys from iterable and values equal to value.
get
items
keys
load
pop If key is not found, d is returned if given, otherwise KeyError is raised
popitem 2-tuple; but raise KeyError if D is empty.
setdefault
to_dict
update If E is present and has a .keys() method, then does: for k in E: D[k] = E[k]
values
__init__()

Initialize self. See help(type(self)) for accurate signature.

Attributes

DECLARATION_DATA Data to be parsed from the input when declaration mode is enabled.
DECLARATION_SELECTOR_CONFIG Data to be parsed from the input when declaration mode is enabled.
DELTA_RPM2VALIDATE_TEMP Maximum initial engine coolant temperature for the temperature check [RPM].
MAX_INITIAL_TEMP Maximum initial engine coolant temperature for the temperature check [°C].
MAX_VALIDATE_DTEMP Maximum allowed dT for the initial temperature check [°C].
MAX_VALIDATE_POS_CURR Maximum allowed positive current for the alternator currents check [A].
MAX_VALIDATE_DTEMP = 2

Maximum allowed dT for the initial temperature check [°C].

MAX_INITIAL_TEMP = 25.0

Maximum initial engine coolant temperature for the temperature check [°C].

DELTA_RPM2VALIDATE_TEMP = 50.0

Maximum initial engine coolant temperature for the temperature check [RPM].

MAX_VALIDATE_POS_CURR = 1.0

Maximum allowed positive current for the alternator currents check [A].

DECLARATION_DATA = {'target': True, 'input': {'prediction': {'wltp_h': {'has_start_stop': True, 'engine_idle_fuel_consumption': True, 'engine_is_turbo': True, 'full_load_powers': True, 'tyre_code': True, 'engine_has_variable_valve_actuation': True, 'has_exhausted_gas_recirculation': True, 'has_energy_recuperation': True, 'full_load_torques': True, 'gears': True, 'engine_stroke': True, 'cycle_name': True, 'engine_has_direct_injection': True, 'full_load_speeds': True, 'f1': True, 'fuel_type': True, 'engine_has_cylinder_deactivation': True, 'has_periodically_regenerating_systems': True, 'has_nox_storage_catalyst': True, 'has_thermal_management': True, 'final_drive_ratios': True, 'velocities': True, 'ignition_type': True, 'idle_engine_speed_median': True, 'alternator_nominal_power': True, 'final_drive_ratio': True, 'ki_factor': True, 'has_selective_catalytic_reduction': True, 'has_lean_burn': True, 'gear_box_ratios': True, 'has_particle_filter': True, 'gear_box_type': True, 'has_gear_box_thermal_management': True, 'vehicle_mass': True, 'fuel_carbon_content_percentage': True, 'alternator_efficiency': True, 'bag_phases': True, 'f0': True, 'battery_capacity': True, 'has_torque_converter': True, 'cycle_type': True, 'f2': True, 'engine_max_speed': True, 'alternator_nominal_voltage': True, 'times': True, 'engine_fuel_lower_heating_value': True, 'fuel_saving_at_strategy': True, 'active_cylinder_ratios': True, 'VERSION': True, 'engine_capacity': True, 'start_stop_activation_time': True, 'n_wheel_drive': True}, 'nedc_h': {'has_start_stop': True, 'engine_idle_fuel_consumption': True, 'engine_is_turbo': True, 'full_load_powers': True, 'tyre_code': True, 'engine_has_variable_valve_actuation': True, 'has_exhausted_gas_recirculation': True, 'has_energy_recuperation': True, 'full_load_torques': True, 'gears': True, 'engine_stroke': True, 'cycle_name': True, 'engine_has_direct_injection': True, 'full_load_speeds': True, 'f1': True, 'fuel_type': True, 'engine_has_cylinder_deactivation': True, 'has_periodically_regenerating_systems': True, 'has_nox_storage_catalyst': True, 'has_thermal_management': True, 'final_drive_ratios': True, 'velocities': True, 'ignition_type': True, 'idle_engine_speed_median': True, 'alternator_nominal_power': True, 'final_drive_ratio': True, 'ki_factor': True, 'has_selective_catalytic_reduction': True, 'has_lean_burn': True, 'gear_box_ratios': True, 'has_particle_filter': True, 'gear_box_type': True, 'has_gear_box_thermal_management': True, 'vehicle_mass': True, 'fuel_carbon_content_percentage': True, 'alternator_efficiency': True, 'bag_phases': True, 'f0': True, 'battery_capacity': True, 'has_torque_converter': True, 'cycle_type': True, 'f2': True, 'engine_max_speed': True, 'alternator_nominal_voltage': True, 'times': True, 'engine_fuel_lower_heating_value': True, 'fuel_saving_at_strategy': True, 'active_cylinder_ratios': True, 'VERSION': True, 'engine_capacity': True, 'start_stop_activation_time': True, 'n_wheel_drive': True}, 'wltp_l': {'has_start_stop': True, 'engine_idle_fuel_consumption': True, 'engine_is_turbo': True, 'full_load_powers': True, 'tyre_code': True, 'engine_has_variable_valve_actuation': True, 'has_exhausted_gas_recirculation': True, 'has_energy_recuperation': True, 'full_load_torques': True, 'gears': True, 'engine_stroke': True, 'cycle_name': True, 'engine_has_direct_injection': True, 'full_load_speeds': True, 'f1': True, 'fuel_type': True, 'engine_has_cylinder_deactivation': True, 'has_periodically_regenerating_systems': True, 'has_nox_storage_catalyst': True, 'has_thermal_management': True, 'final_drive_ratios': True, 'velocities': True, 'ignition_type': True, 'idle_engine_speed_median': True, 'alternator_nominal_power': True, 'final_drive_ratio': True, 'ki_factor': True, 'has_selective_catalytic_reduction': True, 'has_lean_burn': True, 'gear_box_ratios': True, 'has_particle_filter': True, 'gear_box_type': True, 'has_gear_box_thermal_management': True, 'vehicle_mass': True, 'fuel_carbon_content_percentage': True, 'alternator_efficiency': True, 'bag_phases': True, 'f0': True, 'battery_capacity': True, 'has_torque_converter': True, 'cycle_type': True, 'f2': True, 'engine_max_speed': True, 'alternator_nominal_voltage': True, 'times': True, 'engine_fuel_lower_heating_value': True, 'fuel_saving_at_strategy': True, 'active_cylinder_ratios': True, 'VERSION': True, 'engine_capacity': True, 'start_stop_activation_time': True, 'n_wheel_drive': True}, 'nedc_l': {'has_start_stop': True, 'engine_idle_fuel_consumption': True, 'engine_is_turbo': True, 'full_load_powers': True, 'tyre_code': True, 'engine_has_variable_valve_actuation': True, 'has_exhausted_gas_recirculation': True, 'has_energy_recuperation': True, 'full_load_torques': True, 'gears': True, 'engine_stroke': True, 'cycle_name': True, 'engine_has_direct_injection': True, 'full_load_speeds': True, 'f1': True, 'fuel_type': True, 'engine_has_cylinder_deactivation': True, 'has_periodically_regenerating_systems': True, 'has_nox_storage_catalyst': True, 'has_thermal_management': True, 'final_drive_ratios': True, 'velocities': True, 'ignition_type': True, 'idle_engine_speed_median': True, 'alternator_nominal_power': True, 'final_drive_ratio': True, 'ki_factor': True, 'has_selective_catalytic_reduction': True, 'has_lean_burn': True, 'gear_box_ratios': True, 'has_particle_filter': True, 'gear_box_type': True, 'has_gear_box_thermal_management': True, 'vehicle_mass': True, 'fuel_carbon_content_percentage': True, 'alternator_efficiency': True, 'bag_phases': True, 'f0': True, 'battery_capacity': True, 'has_torque_converter': True, 'cycle_type': True, 'f2': True, 'engine_max_speed': True, 'alternator_nominal_voltage': True, 'times': True, 'engine_fuel_lower_heating_value': True, 'fuel_saving_at_strategy': True, 'active_cylinder_ratios': True, 'VERSION': True, 'engine_capacity': True, 'start_stop_activation_time': True, 'n_wheel_drive': True}}, 'calibration': {'wltp_h': {'has_start_stop': True, 'battery_currents': True, 'engine_idle_fuel_consumption': True, 'has_exhausted_gas_recirculation': True, 'obd_velocities': True, 'full_load_powers': True, 'tyre_code': True, 'co2_emission_high': True, 'engine_has_variable_valve_actuation': True, 'engine_is_turbo': True, 'has_energy_recuperation': True, 'full_load_torques': True, 'alternator_currents': True, 'engine_stroke': True, 'cycle_name': True, 'engine_has_direct_injection': True, 'has_selective_catalytic_reduction': True, 'full_load_speeds': True, 'f1': True, 'co2_normalization_references': True, 'fuel_type': True, 'engine_fuel_lower_heating_value': True, 'has_periodically_regenerating_systems': True, 'has_nox_storage_catalyst': True, 'has_thermal_management': True, 'vehicle_mass': True, 'velocities': True, 'ignition_type': True, 'idle_engine_speed_median': True, 'alternator_nominal_power': True, 'final_drive_ratio': True, 'ki_factor': True, 'co2_emission_extra_high': True, 'initial_temperature': True, 'has_lean_burn': True, 'gear_box_ratios': True, 'has_particle_filter': True, 'gear_box_type': True, 'has_gear_box_thermal_management': True, 'co2_emission_low': True, 'n_dyno_axes': True, 'engine_coolant_temperatures': True, 'fuel_carbon_content_percentage': True, 'engine_speeds_out': True, 'alternator_efficiency': True, 'engine_has_cylinder_deactivation': True, 'bag_phases': True, 'f0': True, 'battery_capacity': True, 'has_torque_converter': True, 'cycle_type': True, 'f2': True, 'engine_max_speed': True, 'alternator_nominal_voltage': True, 'co2_emission_medium': True, 'times': True, 'final_drive_ratios': True, 'fuel_saving_at_strategy': True, 'active_cylinder_ratios': True, 'VERSION': True, 'engine_capacity': True, 'start_stop_activation_time': True, 'n_wheel_drive': True}, 'wltp_l': {'has_start_stop': True, 'battery_currents': True, 'engine_idle_fuel_consumption': True, 'has_exhausted_gas_recirculation': True, 'obd_velocities': True, 'full_load_powers': True, 'tyre_code': True, 'co2_emission_high': True, 'engine_has_variable_valve_actuation': True, 'engine_is_turbo': True, 'has_energy_recuperation': True, 'full_load_torques': True, 'alternator_currents': True, 'engine_stroke': True, 'cycle_name': True, 'engine_has_direct_injection': True, 'has_selective_catalytic_reduction': True, 'full_load_speeds': True, 'f1': True, 'co2_normalization_references': True, 'fuel_type': True, 'engine_fuel_lower_heating_value': True, 'has_periodically_regenerating_systems': True, 'has_nox_storage_catalyst': True, 'has_thermal_management': True, 'vehicle_mass': True, 'velocities': True, 'ignition_type': True, 'idle_engine_speed_median': True, 'alternator_nominal_power': True, 'final_drive_ratio': True, 'ki_factor': True, 'co2_emission_extra_high': True, 'initial_temperature': True, 'has_lean_burn': True, 'gear_box_ratios': True, 'has_particle_filter': True, 'gear_box_type': True, 'has_gear_box_thermal_management': True, 'co2_emission_low': True, 'n_dyno_axes': True, 'engine_coolant_temperatures': True, 'fuel_carbon_content_percentage': True, 'engine_speeds_out': True, 'alternator_efficiency': True, 'engine_has_cylinder_deactivation': True, 'bag_phases': True, 'f0': True, 'battery_capacity': True, 'has_torque_converter': True, 'cycle_type': True, 'f2': True, 'engine_max_speed': True, 'alternator_nominal_voltage': True, 'co2_emission_medium': True, 'times': True, 'final_drive_ratios': True, 'fuel_saving_at_strategy': True, 'active_cylinder_ratios': True, 'VERSION': True, 'engine_capacity': True, 'start_stop_activation_time': True, 'n_wheel_drive': True}}}}

Data to be parsed from the input when declaration mode is enabled.

DECLARATION_SELECTOR_CONFIG = {'config': {'at_model': {'best_model_settings': {'select': {'wltp_h': ('wltp_h', None), 'nedc_h': ('wltp_h', None), 'wltp_l': ('wltp_l', None), 'nedc_l': ('wltp_l', None)}}}, 'start_stop_model': {'best_model_settings': {'select': {'wltp_h': ('wltp_h', None), 'nedc_h': ('wltp_h', None), 'wltp_l': ('wltp_l', None), 'nedc_l': ('wltp_l', None)}}}, 'engine_cold_start_speed_model': {'best_model_settings': {'select': {'wltp_h': ('wltp_h', None), 'nedc_h': ('wltp_h', None), 'wltp_l': ('wltp_l', None), 'nedc_l': ('wltp_l', None)}}}, 'co2_params': {'best_model_settings': {'select': {'wltp_h': ('wltp_h', None), 'nedc_h': ('wltp_h', None), 'wltp_l': ('wltp_l', None), 'nedc_l': ('wltp_l', None)}}}, 'engine_coolant_temperature_model': {'best_model_settings': {'select': {'wltp_h': ('wltp_h', None), 'nedc_h': ('wltp_h', None), 'wltp_l': ('wltp_l', None), 'nedc_l': ('wltp_l', None)}}}, 'clutch_torque_converter_model': {'best_model_settings': {'select': {'wltp_h': ('wltp_h', None), 'nedc_h': ('wltp_h', None), 'wltp_l': ('wltp_l', None), 'nedc_l': ('wltp_l', None)}}}, 'engine_speed_model': {'best_model_settings': {'select': {'wltp_h': ('wltp_h', None), 'nedc_h': ('wltp_h', None), 'wltp_l': ('wltp_l', None), 'nedc_l': ('wltp_l', None)}}}, 'alternator_model': {'best_model_settings': {'select': {'wltp_h': ('wltp_h', None), 'nedc_h': ('wltp_h', None), 'wltp_l': ('wltp_l', None), 'nedc_l': ('wltp_l', None)}}}}}

Data to be parsed from the input when declaration mode is enabled.