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.
- {citylearn-3.3.0/citylearn.egg-info → citylearn-3.3.1}/PKG-INFO +1 -1
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/__init__.py +1 -1
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/baseline.py +6 -1
- {citylearn-3.3.0 → citylearn-3.3.1/citylearn.egg-info}/PKG-INFO +1 -1
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_robustness.py +38 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/LICENSE +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/MANIFEST.in +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/README.md +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/README_PYPI.md +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/__main__.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/agents/__init__.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/agents/base.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/agents/baseline.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/agents/marlisa.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/agents/q_learning.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/agents/rbc.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/agents/rlc.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/agents/sac.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/assets/building-0-charge-0.png +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/assets/building-0-charge-1.png +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/assets/building-0-charge-2.png +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/assets/building-0-charge-3.png +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/assets/building-1-charge-0.png +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/assets/building-1-charge-1.png +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/assets/building-1-charge-2.png +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/assets/building-1-charge-3.png +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/assets/glow.png +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/assets/grid.png +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/base.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/building.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/citylearn.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/community_dataset.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/cost_function.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/data.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/dynamics.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/electric_vehicle.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/electric_vehicle_charger.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/end_use_load_profiles/__init__.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/end_use_load_profiles/clustering.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/end_use_load_profiles/lstm_model/__init__.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/end_use_load_profiles/lstm_model/model.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/end_use_load_profiles/lstm_model/model_generation.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/end_use_load_profiles/lstm_model/model_generation_wrapper.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/end_use_load_profiles/lstm_model/preprocessing.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/end_use_load_profiles/neighborhood.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/end_use_load_profiles/simulate.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/energy_model.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/exporter.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/__init__.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/balance_audit.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/building_ops.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/capabilities.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/comparison.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/deferrable_cycles.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/deferrable_service_audit.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/demand_response.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/electrical_limits.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/entity_interface.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/entity_layout.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/entity_observations.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/ev_departure_audit.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/evaluation_progress.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/experiment.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/kpi.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/kpi_community.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/kpi_energy.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/kpi_equipment.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/kpi_family_audit.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/kpi_population.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/kpi_service_metrics.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/loading.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/loading_components.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/loading_inputs.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/market_history.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/observation_contract.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/occupant_models.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/physics_invariants.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/provenance.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/robustness.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/robustness_audit.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/robustness_history.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/robustness_spaces.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/robustness_targets.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/runtime.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/scalars.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/temporal.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/topology.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/internal/units.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/misc/queries/create_zone_metadata.sql +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/misc/queries/select_citylearn_energy_simulation.sql +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/misc/queries/select_citylearn_weather.sql +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/misc/queries/select_ideal_loads.sql +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/misc/queries/select_lstm_training_data.sql +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/misc/queries/select_zone_conditioning_metadata.sql +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/misc/settings.yaml +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/multi_community.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/occupant.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/power_outage.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/preprocessing.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/reward_function.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/rl.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/utilities.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/utils/__init__.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/utils/file_handler.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/utils/noise.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/utils/paths.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn/wrappers.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn.egg-info/SOURCES.txt +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn.egg-info/dependency_links.txt +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn.egg-info/entry_points.txt +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn.egg-info/requires.txt +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/citylearn.egg-info/top_level.txt +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/requirements.txt +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/setup.cfg +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/setup.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_15_second_power_fixture.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_agent_observation_contract.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_audit_entrypoints.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_audit_verification.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_charging_constraints_dataset.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_charging_constraints_e2e.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_community_dataset.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_dataset_download_robustness.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_dataset_loader_window_parquet.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_deferrable_appliance_integration.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_deferrable_cycle_index.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_deferrable_service_audit.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_deferrable_service_ledger.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_demand_response.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_documentation_examples.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_dynamic_topology_assets_only_dataset.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_dynamic_topology_entity_mode.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_dynamic_topology_full_timeline.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_dynamics_observation_timing.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_electrical_limits.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_electrical_service_allocation_regressions.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_electrical_service_and_market.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_energy_provenance.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_energy_provenance_toggle.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_entity_interface_contract.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_entity_observation_bundles.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_episode_reset_state.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_episode_split_configuration.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_ev_arrivals.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_ev_battery_parameters.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_ev_charger_unit.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_ev_departure_audit.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_ev_feasibility_replay.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_ev_replay_batch.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_ev_single_charger_association.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_ev_soc_behavior.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_evaluation_progress.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_evs.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_experiment_comparison.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_gymnasium_compatibility.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_independent_balances.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_internal_refactor_parity.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_internal_service_contracts.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_inventory_ev_battery.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_kpi_family_audit.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_kpi_golden.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_kpi_population.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_kpi_reference_comparability.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_kpi_reference_consistency.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_kpi_v2.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_kpis.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_long_run_audit.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_lstm_hvac_action_scaling.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_market_counterfactual.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_market_history.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_market_phase_invariants.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_multi_community_env.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_numpy_version_independence.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_observation_definitions.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_observation_preparation.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_offline_initialization.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_portable_pairing_evidence.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_provenance_runtime.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_refactor_references.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_reproducibility_and_agent_learn.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_reward_function_wiring.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_rl_agent_regressions.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_rl_temporal_semantics.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_robustness_composition.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_robustness_contracts.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_robustness_history.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_runtime_event_regressions.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_sac_marlisa_regressions.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_scenario_smoke.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_schema_root_compatibility.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_series_integrity.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_storage_reserve_conservation.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_subhourly_unit_conversion.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_temporal_reproducibility.py +0 -0
- {citylearn-3.3.0 → citylearn-3.3.1}/tests/test_thermal_storage_first_step.py +0 -0
- {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.
|
|
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
|
|
@@ -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, '
|
|
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.
|
|
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
|
|
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
|
|
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
|
{citylearn-3.3.0 → citylearn-3.3.1}/citylearn/end_use_load_profiles/lstm_model/model_generation.py
RENAMED
|
File without changes
|
|
File without changes
|
{citylearn-3.3.0 → citylearn-3.3.1}/citylearn/end_use_load_profiles/lstm_model/preprocessing.py
RENAMED
|
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
|
|
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
|
|
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
|
|
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
|
{citylearn-3.3.0 → citylearn-3.3.1}/citylearn/misc/queries/select_citylearn_energy_simulation.sql
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{citylearn-3.3.0 → citylearn-3.3.1}/citylearn/misc/queries/select_zone_conditioning_metadata.sql
RENAMED
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|