citylearn.internal.kpi_energy module

Energy, carbon, cost, comfort and grid-shape KPI records.

The facade supplies window/unit helpers; these functions own their family calculations and return records without changing simulator state.

citylearn.internal.kpi_energy.building_records(kpi: CityLearnKPIService, building, t_start, t_end, control_condition, baseline_condition, comfort_band, evaluation_condition_cls, dynamics_building_cls)[source]

Return legacy frame, extended rows and raw-cost relative benefit.

citylearn.internal.kpi_energy.district_records(kpi: CityLearnKPIService, legacy_building, control_condition, baseline_condition, evaluation_condition_cls, simulated_days)[source]

Preserve district condition selection and legacy mean aggregation.