Skip to content

Commit

Permalink
Merge pull request #1823 from gridsingularity/dev-to-prod-2025-01-08
Browse files Browse the repository at this point in the history
Dev to prod 2025 01 08
  • Loading branch information
spyrostz authored Jan 8, 2025
2 parents 332eecf + 2a3d633 commit 30b4ae1
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 30b4ae1

Please sign in to comment.