4.11. postproc_setup module

class postproc_setup.RuntimeSettings[source]

Bases: object

The RuntimeSettings class reads the runtime_settings.csv input file and parses the information to establish what CCEMS reports to post-process.

class postproc_setup.SetInputs[source]

Bases: object

The SetInputs class reads the general_inputs.csv input file and parses the information needed for the given tool run. This class also reads the cost factors inputs files and creates the dictionaries needed in-code.

Note: The base_scenario_name must be in each file read and combined by this tool, and entered in the general_inputs.csv file (1 MPG Standards is the default). However, since it’s in each file, it will be removed so that combining things doesn’t double-count (multiple-count?) that scenario. In this tool, the total social costs and benefits are calculated relative to the base_social_scenario entered in the general_inputs.csv file (2020hold is the default). This allows for any two scenarios to be compared since the total social cost and benefit results for both are calculated relative to a common scenario.

class postproc_setup.SetPaths[source]

Bases: object

The SetPaths class sets the paths and run_id info used by the tool.

static get_run_identifiers(time_of_postproc_run)[source]
Parameters:

time_of_postproc_run: String set in-code denoting the timestamp at the start of the given tool run.

Return:

run_id set by the user, if desired, in response to a console prompt

run_folder_identifier consisting of the passed timestamp and, if set by the user, the run_id

filename_id to be included in all files generated by this tool

run_details to be included in the summary_log for the given tool run

set_results_folders(run_folder_identifier)[source]
Parameters:

run_folder_identifier: String including a timestamp set in-code and, if selected, identifier info supplied by the user via console prompt.

Return:

Path to results associated with the given model run.