citylearn.internal.kpi_population module
Evaluation-local membership masks; never cache physical values or KPI results.
- class citylearn.internal.kpi_population.ActivePopulation(env)[source]
Bases:
objectSnapshot sparse topology transitions once; construct masks lazily.
Thermal/condition queries carry the current membership backwards before the first recorded transition, matching active_member_ids_at. Energy masking instead leaves that prefix zero, matching its established interval loop. Arrays are read-only and keyed by member, actual series horizon and semantics.
- property mask_bytes