4.12. report_classes module¶
- class report_classes.ComplianceReport(report_df)[source]¶
Bases:
object- Note:
This class controls the summation, sales weighting, etc., of framework OEM and non-framework OEM results into a single fleet for the compliance report. The costs in the CCEMS compliance report are absolute for the CCEMS baseline scenario (settings.base_scenario_name) and then incremental to that for other scenarios. It is important that the baseline scenario be consistent for all runs processed by this tool since that scenario is scrubbed out of the post-processed file. For incremental costs between, for example, the No Action and any Action scenario in the tool, the results will only be valid if the CCEMS incremental Action scenario costs are relative to the same baseline scenario.
- class report_classes.CostsReport(report_df)[source]¶
Bases:
object- Note:
This class controls the summation, sales weighting, etc., of framework OEM and non-framework OEM results into a single fleet for the cost report.
- class report_classes.EffectsReport(report_df)[source]¶
Bases:
object- Note:
This class controls the summation, sales weighting, etc., of framework OEM and non-framework OEM results into a single fleet for the effects report. Some data reported by CCEMS are excluded from the effects reports of this tool. The data to exclude are set in the SetInputs class and include metrics having keywords such as ‘Admissions’, ‘Asthma’, ‘Attacks’, ‘Bronchitis’, ‘Premature’, ‘Respiratory’, ‘Restricted’, ‘Work Loss’.
- class report_classes.TechReport(report_df)[source]¶
Bases:
object- Note:
This class controls the summation, sales weighting, etc., of framework OEM and non-framework OEM results into a single fleet for the technology utilization report.
- class report_classes.VehiclesReport(report_df)[source]¶
Bases:
object- Note:
This class controls the summation, sales weighting, etc., of framework OEM and non-framework OEM results into a single fleet for the vehicles report.
- static calc_results(tech_data)[source]¶
- Parameters:
tech_data: A DataFrame of powertrain specific data for a given scenario and model year.
- Return:
The sales of vehicles with the given powertrain tech and the sales-weighted average cost of that powertrain tech.
- new_report(settings)[source]¶
- Note:
This method returns a DataFrame of sales-weighted costs for the different powertrain techs for each scenario and model year (those specified in settings.run_model_years). It does not return the CCEMS vehicles report.
- Parameters:
settings: The SetInputs class.
- Return:
A DataFrame of Sales, Sales Share, Sales-Weighted Avg Cost Add and Contribution to the cost/vehicle in each model year for each scenario.