CityLearn 3.3.0__tar.gz → 3.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. {citylearn-3.3.0/citylearn.egg-info → citylearn-3.3.1}/PKG-INFO +1 -1
  2. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/__init__.py +1 -1
  3. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/baseline.py +6 -1
  4. {citylearn-3.3.0 → citylearn-3.3.1/citylearn.egg-info}/PKG-INFO +1 -1
  5. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_robustness.py +38 -0
  6. {citylearn-3.3.0 → citylearn-3.3.1}/LICENSE +0 -0
  7. {citylearn-3.3.0 → citylearn-3.3.1}/MANIFEST.in +0 -0
  8. {citylearn-3.3.0 → citylearn-3.3.1}/README.md +0 -0
  9. {citylearn-3.3.0 → citylearn-3.3.1}/README_PYPI.md +0 -0
  10. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/__main__.py +0 -0
  11. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/agents/__init__.py +0 -0
  12. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/agents/base.py +0 -0
  13. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/agents/baseline.py +0 -0
  14. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/agents/marlisa.py +0 -0
  15. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/agents/q_learning.py +0 -0
  16. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/agents/rbc.py +0 -0
  17. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/agents/rlc.py +0 -0
  18. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/agents/sac.py +0 -0
  19. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/assets/building-0-charge-0.png +0 -0
  20. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/assets/building-0-charge-1.png +0 -0
  21. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/assets/building-0-charge-2.png +0 -0
  22. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/assets/building-0-charge-3.png +0 -0
  23. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/assets/building-1-charge-0.png +0 -0
  24. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/assets/building-1-charge-1.png +0 -0
  25. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/assets/building-1-charge-2.png +0 -0
  26. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/assets/building-1-charge-3.png +0 -0
  27. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/assets/glow.png +0 -0
  28. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/assets/grid.png +0 -0
  29. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/base.py +0 -0
  30. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/building.py +0 -0
  31. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/citylearn.py +0 -0
  32. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/community_dataset.py +0 -0
  33. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/cost_function.py +0 -0
  34. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/data.py +0 -0
  35. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/dynamics.py +0 -0
  36. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/electric_vehicle.py +0 -0
  37. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/electric_vehicle_charger.py +0 -0
  38. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/end_use_load_profiles/__init__.py +0 -0
  39. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/end_use_load_profiles/clustering.py +0 -0
  40. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/end_use_load_profiles/lstm_model/__init__.py +0 -0
  41. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/end_use_load_profiles/lstm_model/model.py +0 -0
  42. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/end_use_load_profiles/lstm_model/model_generation.py +0 -0
  43. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/end_use_load_profiles/lstm_model/model_generation_wrapper.py +0 -0
  44. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/end_use_load_profiles/lstm_model/preprocessing.py +0 -0
  45. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/end_use_load_profiles/neighborhood.py +0 -0
  46. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/end_use_load_profiles/simulate.py +0 -0
  47. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/energy_model.py +0 -0
  48. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/exporter.py +0 -0
  49. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/__init__.py +0 -0
  50. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/balance_audit.py +0 -0
  51. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/building_ops.py +0 -0
  52. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/capabilities.py +0 -0
  53. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/comparison.py +0 -0
  54. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/deferrable_cycles.py +0 -0
  55. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/deferrable_service_audit.py +0 -0
  56. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/demand_response.py +0 -0
  57. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/electrical_limits.py +0 -0
  58. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/entity_interface.py +0 -0
  59. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/entity_layout.py +0 -0
  60. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/entity_observations.py +0 -0
  61. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/ev_departure_audit.py +0 -0
  62. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/evaluation_progress.py +0 -0
  63. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/experiment.py +0 -0
  64. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/kpi.py +0 -0
  65. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/kpi_community.py +0 -0
  66. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/kpi_energy.py +0 -0
  67. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/kpi_equipment.py +0 -0
  68. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/kpi_family_audit.py +0 -0
  69. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/kpi_population.py +0 -0
  70. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/kpi_service_metrics.py +0 -0
  71. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/loading.py +0 -0
  72. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/loading_components.py +0 -0
  73. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/loading_inputs.py +0 -0
  74. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/market_history.py +0 -0
  75. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/observation_contract.py +0 -0
  76. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/occupant_models.py +0 -0
  77. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/physics_invariants.py +0 -0
  78. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/provenance.py +0 -0
  79. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/robustness.py +0 -0
  80. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/robustness_audit.py +0 -0
  81. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/robustness_history.py +0 -0
  82. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/robustness_spaces.py +0 -0
  83. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/robustness_targets.py +0 -0
  84. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/runtime.py +0 -0
  85. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/scalars.py +0 -0
  86. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/temporal.py +0 -0
  87. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/topology.py +0 -0
  88. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/units.py +0 -0
  89. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/misc/queries/create_zone_metadata.sql +0 -0
  90. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/misc/queries/select_citylearn_energy_simulation.sql +0 -0
  91. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/misc/queries/select_citylearn_weather.sql +0 -0
  92. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/misc/queries/select_ideal_loads.sql +0 -0
  93. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/misc/queries/select_lstm_training_data.sql +0 -0
  94. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/misc/queries/select_zone_conditioning_metadata.sql +0 -0
  95. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/misc/settings.yaml +0 -0
  96. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/multi_community.py +0 -0
  97. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/occupant.py +0 -0
  98. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/power_outage.py +0 -0
  99. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/preprocessing.py +0 -0
  100. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/reward_function.py +0 -0
  101. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/rl.py +0 -0
  102. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/utilities.py +0 -0
  103. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/utils/__init__.py +0 -0
  104. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/utils/file_handler.py +0 -0
  105. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/utils/noise.py +0 -0
  106. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/utils/paths.py +0 -0
  107. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/wrappers.py +0 -0
  108. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn.egg-info/SOURCES.txt +0 -0
  109. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn.egg-info/dependency_links.txt +0 -0
  110. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn.egg-info/entry_points.txt +0 -0
  111. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn.egg-info/requires.txt +0 -0
  112. {citylearn-3.3.0 → citylearn-3.3.1}/citylearn.egg-info/top_level.txt +0 -0
  113. {citylearn-3.3.0 → citylearn-3.3.1}/requirements.txt +0 -0
  114. {citylearn-3.3.0 → citylearn-3.3.1}/setup.cfg +0 -0
  115. {citylearn-3.3.0 → citylearn-3.3.1}/setup.py +0 -0
  116. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_15_second_power_fixture.py +0 -0
  117. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_agent_observation_contract.py +0 -0
  118. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_audit_entrypoints.py +0 -0
  119. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_audit_verification.py +0 -0
  120. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_charging_constraints_dataset.py +0 -0
  121. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_charging_constraints_e2e.py +0 -0
  122. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_community_dataset.py +0 -0
  123. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_dataset_download_robustness.py +0 -0
  124. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_dataset_loader_window_parquet.py +0 -0
  125. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_deferrable_appliance_integration.py +0 -0
  126. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_deferrable_cycle_index.py +0 -0
  127. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_deferrable_service_audit.py +0 -0
  128. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_deferrable_service_ledger.py +0 -0
  129. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_demand_response.py +0 -0
  130. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_documentation_examples.py +0 -0
  131. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_dynamic_topology_assets_only_dataset.py +0 -0
  132. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_dynamic_topology_entity_mode.py +0 -0
  133. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_dynamic_topology_full_timeline.py +0 -0
  134. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_dynamics_observation_timing.py +0 -0
  135. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_electrical_limits.py +0 -0
  136. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_electrical_service_allocation_regressions.py +0 -0
  137. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_electrical_service_and_market.py +0 -0
  138. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_energy_provenance.py +0 -0
  139. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_energy_provenance_toggle.py +0 -0
  140. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_entity_interface_contract.py +0 -0
  141. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_entity_observation_bundles.py +0 -0
  142. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_episode_reset_state.py +0 -0
  143. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_episode_split_configuration.py +0 -0
  144. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_ev_arrivals.py +0 -0
  145. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_ev_battery_parameters.py +0 -0
  146. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_ev_charger_unit.py +0 -0
  147. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_ev_departure_audit.py +0 -0
  148. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_ev_feasibility_replay.py +0 -0
  149. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_ev_replay_batch.py +0 -0
  150. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_ev_single_charger_association.py +0 -0
  151. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_ev_soc_behavior.py +0 -0
  152. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_evaluation_progress.py +0 -0
  153. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_evs.py +0 -0
  154. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_experiment_comparison.py +0 -0
  155. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_gymnasium_compatibility.py +0 -0
  156. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_independent_balances.py +0 -0
  157. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_internal_refactor_parity.py +0 -0
  158. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_internal_service_contracts.py +0 -0
  159. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_inventory_ev_battery.py +0 -0
  160. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_kpi_family_audit.py +0 -0
  161. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_kpi_golden.py +0 -0
  162. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_kpi_population.py +0 -0
  163. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_kpi_reference_comparability.py +0 -0
  164. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_kpi_reference_consistency.py +0 -0
  165. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_kpi_v2.py +0 -0
  166. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_kpis.py +0 -0
  167. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_long_run_audit.py +0 -0
  168. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_lstm_hvac_action_scaling.py +0 -0
  169. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_market_counterfactual.py +0 -0
  170. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_market_history.py +0 -0
  171. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_market_phase_invariants.py +0 -0
  172. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_multi_community_env.py +0 -0
  173. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_numpy_version_independence.py +0 -0
  174. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_observation_definitions.py +0 -0
  175. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_observation_preparation.py +0 -0
  176. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_offline_initialization.py +0 -0
  177. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_portable_pairing_evidence.py +0 -0
  178. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_provenance_runtime.py +0 -0
  179. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_refactor_references.py +0 -0
  180. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_reproducibility_and_agent_learn.py +0 -0
  181. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_reward_function_wiring.py +0 -0
  182. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_rl_agent_regressions.py +0 -0
  183. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_rl_temporal_semantics.py +0 -0
  184. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_robustness_composition.py +0 -0
  185. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_robustness_contracts.py +0 -0
  186. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_robustness_history.py +0 -0
  187. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_runtime_event_regressions.py +0 -0
  188. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_sac_marlisa_regressions.py +0 -0
  189. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_scenario_smoke.py +0 -0
  190. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_schema_root_compatibility.py +0 -0
  191. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_series_integrity.py +0 -0
  192. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_storage_reserve_conservation.py +0 -0
  193. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_subhourly_unit_conversion.py +0 -0
  194. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_temporal_reproducibility.py +0 -0
  195. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_thermal_storage_first_step.py +0 -0
  196. {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_wrapper_cli_occupant_regressions.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: citylearn
3
- Version: 3.3.0
3
+ Version: 3.3.1
4
4
  Summary: CityLearn: an energy-community reinforcement-learning environment focused on EV/BESS/PV, electrical-service constraints, dynamic topology and community-market experimentation.
5
5
  Home-page: https://github.com/citylearn-project/CityLearn
6
6
  Author: Soft-CPS Research Group, Jose Ramon Vazquez-Canteli, Kingsley Nweye, Zoltan Nagy
@@ -1,4 +1,4 @@
1
- __version__ = '3.3.0'
1
+ __version__ = '3.3.1'
2
2
 
3
3
  __all__ = ["MultiCommunityEnv", "__version__"]
4
4
 
@@ -148,8 +148,13 @@ class CityLearnBusinessAsUsualBaselineService:
148
148
  simulation_start = int(getattr(tracker, 'simulation_start_time_step', start))
149
149
  simulation_end = int(getattr(tracker, 'simulation_end_time_step', end))
150
150
 
151
+ # Follow the evaluated env's interface: robustness events can target entity tables
152
+ # (EV, storage, PV) that the flat layout does not expose, so a flat reference would
153
+ # reject a schema the evaluated env accepted. The BAU agent reads simulator state
154
+ # directly, so the interface does not change its actions.
151
155
  requires_entity_interface = (
152
- getattr(env, 'topology_mode', None) == 'dynamic'
156
+ getattr(env, 'interface', 'flat') == 'entity'
157
+ or getattr(env, 'topology_mode', None) == 'dynamic'
153
158
  or bool(getattr(getattr(env, '_demand_response_service', None), 'enabled', False))
154
159
  )
155
160
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: citylearn
3
- Version: 3.3.0
3
+ Version: 3.3.1
4
4
  Summary: CityLearn: an energy-community reinforcement-learning environment focused on EV/BESS/PV, electrical-service constraints, dynamic topology and community-market experimentation.
5
5
  Home-page: https://github.com/citylearn-project/CityLearn
6
6
  Author: Soft-CPS Research Group, Jose Ramon Vazquez-Canteli, Kingsley Nweye, Zoltan Nagy
@@ -671,6 +671,44 @@ def test_asset_unavailable_telemetry_and_control_without_dynamic_topology(tmp_pa
671
671
  env.close()
672
672
 
673
673
 
674
+ def test_business_as_usual_reference_accepts_entity_only_targets_with_static_topology(tmp_path: Path):
675
+ # An EV SOC event only resolves against the entity `ev` table. With static topology and no
676
+ # demand response the BAU reference used to be built flat and rejected the evaluated schema.
677
+ schema = _copy_schema(tmp_path, name="bau_entity_ev_soc", interface="entity")
678
+ schema["topology_mode"] = "static"
679
+ _write_events(
680
+ schema,
681
+ [
682
+ _event(
683
+ event_id="ev_soc_noise",
684
+ target_type="ev",
685
+ target_id="*",
686
+ target_feature="soc",
687
+ end=3,
688
+ mode="noise",
689
+ std=0.005,
690
+ )
691
+ ],
692
+ )
693
+ env = CityLearnEnv(_clean_schema(schema), central_agent=True, episode_time_steps=4, random_seed=0)
694
+
695
+ try:
696
+ assert env.interface == "entity"
697
+ assert env.topology_mode == "static"
698
+ env.reset(seed=0)
699
+ while not env.terminated:
700
+ env.step(_zero_actions(env))
701
+ sidecar = env._business_as_usual_baseline_service._new_sidecar_env()
702
+ try:
703
+ assert sidecar.interface == "entity"
704
+ finally:
705
+ sidecar.close()
706
+ kpis = env.evaluate_v2()
707
+ assert not kpis.empty
708
+ finally:
709
+ env.close()
710
+
711
+
674
712
  def test_observation_only_robustness_keeps_reward_on_real_state(tmp_path: Path):
675
713
  schema = _copy_schema(tmp_path, name="reward_real_state")
676
714
  _write_events(schema, [_event(replacement_value=-9999.0)])
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes