Skip to content

Edisgo run edisgo#629

Open
MoritzSchloesser wants to merge 11 commits into
devfrom
edisgo_run_edisgo
Open

Edisgo run edisgo#629
MoritzSchloesser wants to merge 11 commits into
devfrom
edisgo_run_edisgo

Conversation

@MoritzSchloesser
Copy link
Copy Markdown
Collaborator

Description

Please include a summary of the change and which issue is fixed.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • New and adjusted code is formatted using the pre-commit hooks
  • New and adjusted code includes type hinting now
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • The Read the Docs documentation is compiling correctly
  • If new packages are needed, I added them the setup.py, and if needed the rtd_requirements.txt, the eDisGo_env.yml and the eDisGo_env_dev.yml.
  • I have added new features to the corresponding whatsnew file

Jonas Danke and others added 11 commits May 13, 2026 16:15
Adds optional overlying_grid_data kwarg to run_edisgo() that is
stashed on RunContext for downstream tasks instead of being passed
as a keyword to every task (which broke task signatures).

task_import_overlying_grid_data now:
- accepts the standard (edisgo, ctx, *, ...) signature
- reads overlying_grid_data from ctx, falls back to overlying_grid.path
  in the runner config
- loads dispatchable + renewables_potential CSVs and applies them via
  set_time_series_active_power_predefined
- shifts the year and reindexes overlying-grid attributes to the
  active edisgo timeindex so CSV-based input lines up with OEDB
  time series

task_set_timeindex now reduces existing time-series data to the new
index (via reduce_timeseries_data_to_given_timeindex) instead of
silently leaving stale data behind.

Renames the uc4_example_MS preset to uc4_example.
…ndex

powermodels_io.from_powermodels now slices the destination time index
explicitly when writing OPF flex results back to the EDisGo
timeseries (gen_nd, heatpumps, electromobility, dsm, storage). Using
`loc[:, names]` overwrites every row of the underlying DataFrame
even when the OPF only covered a subset of timesteps; restricting
to `timeseries.timeindex` keeps untouched rows intact.

task_optimize:
- fixes typo `flexbile` → `flexible` in the dsm shortcut
- corrects the dsm condition (was checking `is not None`, should
  populate when `None`)
- materializes empty flex lists once instead of repeating `or []`
  at every call site

task_import_overlying_grid_data reindexes the three SOC attributes
(storage_units_soc, thermal_storage_units_{central,decentral}_soc) to
timeindex + 1 extra step, because PowerModels expects the
end-of-period SOC value; non-SOC overlying-grid attributes still
reindex to the plain timeindex.

uc4_example preset reworked: switches to opf_version 3 (HV
constraints from overlying grid), drops base_reinforce + check_integrity
from the pipeline, adds an explicit `overlying_grid.path` config slot,
splits import_electromobility kwargs onto separate lines, and enables
archive + save_opf_results on the final save step.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants