Skip to content

CityLearn 3.9.3

Latest

Choose a tag to compare

@calofonseca calofonseca released this 03 Dec 14:50
· 4 commits to master since this release
v3.9.3
933ddb5

What's new

CityLearn 3.9.3 is a scientific-hardening patch release resolving two consecutive rounds of independent zero-prior-information blind adversarial audits across physical conservation, occupants and HVAC/LSTM thermal dynamics, shared thermal devices, InventoryBattery asymmetric limits, EV chargers and non-monotonic efficiency curves, three-phase electrical-service allocation, deferrable appliances, escalators, step_many() wrappers and robustness fault accounting, dynamic topology lifecycles, evaluate_v2() KPIs, reward functions, reference controllers and English/Portuguese documentation:

  • Runtime physics invariants & balance audit (#554): Extended PhysicsInvariantService and IndependentBalanceAudit to enforce asymmetric InventoryBattery charge/discharge power limits and max_soc upper bounds, deduplicate shared ElectricDevice instances across cooling_device, heating_device and dhw_device, verify battery standby-loss conservation and per-step power/duty shares on batteries and thermal tanks, check Escalator power bounds and islanded outage non-export (net_electricity_consumption == 0), and verify EV away-from-home SOC drift external ledger events.
  • Occupants, thermal dynamics, batteries, EVs & electrical allocation (#554): Prevented simultaneous heating/cooling overrides in LogisticRegressionOccupantInteraction from inverting heating_set_point <= cooling_set_point, respected ignore_occupant=True across all hvac_mode branches and cleared delta summaries on reset(); deduplicated shared thermal ElectricDevice stepping and metering on Building while preserving float32 addition order across NumPy 1.x and 2.x; decoupled post-warm-up LSTMDynamicsBuilding outage counterfactuals from agent actions; prevented severe battery discharge degradation from dropping degraded_capacity below remaining stored energy while preserving sub-reserve arrival conservation (#179); fixed non-monotonic Charger efficiency-curve optimization and bracketed bisection (ChargingConstraintReplay / evaluate_v2()), V2G near-DoD bottom-off feasibility, per-charger mixed 0-based/1-based countdown detection, last_charged_dc_kwh one-way efficiency accounting, double-booked charger exclusion, disjoint boundary departures and inactive dynamic-topology buildings under ev_soc_carryover, and JSON-safe Charger/ElectricVehicle end-of-simulation rendering; and stabilized allocate_electrical_service() under opposing three-phase and single-phase controls while reporting soc_limit accurately on InventoryBattery via _step_share_power().
  • Escalators, deferrables, wrappers, robustness, dynamic topology & KPIs (#554): Bound Escalator runtime attributes across dynamic-topology activations, sliced Escalator CSV loads by simulation_start_time_step, zeroed out-of-service (available == 0) escalator demand without masking 'availability' with 'outage', and reported settled t - 1 service_met for uncontrolled escalators; fixed DeferrableAppliance last_started_local_time_step action feedback and flat schedule helper keys; implemented step_many() delegation across Gymnasium and RLlib wrappers, unwrapped _GymWrapper chains in DiscreteObservationWrapper, and supported multi-discrete TabularQLearningWrapper spaces; matched step_many(return_substeps=False) step-by-step under stuck observation faults, propagated asset unavailable faults across child entity tables and linked charger <-> ev channels, scoped per-building -1.0 entity sentinel masking strictly to explicit inactive_observations, rejected non-finite entity action tables with ValueError, validated agent_observation_contract at construction even when robustness.enabled is False, and fixed terminal-step N - 1 EV swaps; excluded zero-executed-step dynamic-topology members from unweighted district equity/comfort averages while retaining 0.0 inventory/cost rows, preserved BESS lineage SOH across remove_member -> add_member rejoins, masked outage thermal service expectations consistently, refined Electric_Vehicles_Reward_Function, ComfortReward, SolarPenaltyAndComfortReward, CostFunction.normalized_unserved_energy(), MARLISA, TabularQLearning and RBC controllers, and synchronized EN/PT documentation and localized migration anchors.

Validation

  • Passed the full 20-job CI matrix across Python 3.10 to 3.14 (NumPy 2), Python 3.10 (NumPy 1), Windows, macOS, dataset/entity-contract/physics/runtime audits, notebooks and Sphinx documentation build.
  • Added 30 multi-scenario regression tests (tests/test_post_392_blind_audit.py and tests/test_post_392_round2_blind_audit.py), verified scripts/audit/run_full_audit.py --strict (0 unknown units, 16/16 physics checks, 0 parity diffs), and verified wheel build, twine check and out-of-tree installed export smoke.
  • See docs/releases.md and docs/pt/releases.md for the full release notes in English and Portuguese.

Contributors

Full Changelog: v3.9.2...v3.9.3