Skip to content

Commit

Permalink
Merge pull request #1822 from gridsingularity/bug/GSYE-837
Browse files Browse the repository at this point in the history
GSYE-837: Fixed scm_cn_hours_of_delay dict key, in order to expect th…
  • Loading branch information
spyrostz authored Jan 8, 2025
2 parents 296caf0 + 67e3a07 commit a9e3ab0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gsy_e/gsy_e_core/rq_job_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def _create_config_settings_object(
"external_connection_enabled": settings.get("external_connection_enabled", False),
"aggregator_device_mapping": aggregator_device_mapping,
"hours_of_delay": settings.get("scm", {}).get(
"hours_of_delay", ConstSettings.SCMSettings.HOURS_OF_DELAY
"scm_cn_hours_of_delay", ConstSettings.SCMSettings.HOURS_OF_DELAY
),
}

Expand Down Expand Up @@ -287,6 +287,7 @@ def _handle_scm_past_slots_simulation_run(
config = _create_config_settings_object(
scenario_copy, settings_copy, aggregator_device_mapping
)

# We are running SCM Canary Networks with some days of delay compared to realtime in order to
# compensate for delays in transmission of the asset measurements.
# Adding 4 hours of extra time to the SCM past slots simulation duration, in order to
Expand All @@ -296,6 +297,7 @@ def _handle_scm_past_slots_simulation_run(
config.sim_duration = config.end_date - config.start_date
GlobalConfig.sim_duration = config.sim_duration
gsy_e.constants.RUN_IN_REALTIME = False

simulation_state = run_simulation(
setup_module_name=scenario_name,
simulation_config=config,
Expand Down

0 comments on commit a9e3ab0

Please sign in to comment.