4.10. off_cycle_costs module

off_cycle_costs.calc_new_tech_costs_in_cost_report(input_df, compliance_report)[source]
Note:

This function adds off-cycle costs to the cost report results since off-cycle costs are not part of EPA’s CCEMS runs. The Reg-Cost of the combined compliance report should already been been recalculated relative to the CCEMS value by removing any fines and including off-cycle costs.

Parameters:

input_df: A DataFrame reflecting the combined cost reports for the given tool run. compliance_report: A DataFrame reflecting the combined compliance reports for the given tool run.

Return:

The cost report with recalculated Tech Costs inclusive of off-cycle costs.

off_cycle_costs.calc_new_tech_costs_in_cost_summary_report(input_df, compliance_report)[source]
Note:

This function adds off-cycle costs to the cost summary report results since off-cycle costs are not part of EPA’s CCEMS runs. The Reg-Cost of the combined compliance report should already have been recalculated relative to the CCEMS value by removing any fines and including off-cycle costs.

Parameters:

input_df: A DataFrame reflecting the combined cost summary reports for the given tool run. compliance_report: A DataFrame reflecting the combined compliance reports for the given tool run.

Return:

The cost summary report with recalculated Tech Costs inclusive of off-cycle costs.

off_cycle_costs.calc_off_cycle_costs_in_compliance_report(settings, input_df)[source]
Note:

Note that the CCEMS compliance report includes in the ‘Reg-Cost’ and ‘Avg Reg-Cost’ fines paid by the manufacturer. EPA does not have a fine program. The calculation of ‘Avg Reg-Cost’ and, subsequently, the ‘Reg-Cost’ in this function eliminates those fines while also including off-cycle credit costs.

Parameters:

settings: The SetInputs class. input_df: A DataFrame reflecting the combined compliance report.

Return:

The combined compliance report DataFrame with Off-Cycle and Avg Off-Cycle costs added, Tech Cost, Avg Tech Cost, Reg-Cost and Avg Reg-Cost recalculated to include off-cycle costs.