Skip to content

Conversation

@nader-00
Copy link
Collaborator

This PR fixes the load time series scaling in predefined_conventional_loads_by_sector.

What changed

  • For loads, the time series is no longer scaled with annual_consumption.
  • Instead, the sector profiles are now scaled with the nominal power p_set, analogous to the handling of generators.
  • An explicit check was added to ensure that p_set is available for all affected loads.

Why

  • Using annual_consumption to scale a power time series is inconsistent and misleading, especially when generators are already scaled by nominal power.
  • With this change, both loads and generators are treated consistently: profiles are interpreted as shapes and scaled by p_set.

Related issue

Kilian Helfenbein and others added 30 commits February 5, 2025 10:21
- Check if the database host contains 'toep' by examining engine.url.host.
- If connected to a TOEP database, apply logic to translate table names accordingly.
…orts-not-working-ssh-tunnel-limitations' into project/411-LoMa
- Automatically set `EDisGo.TimeSeries.timeindex` to the default year of the database if it is empty.  # - Added a logger warning to inform users about the default behavior and recommend setting the `timeindex` explicitly using
`EDisGo.set_timeindex()`.  # On branch feature/openego#456-feature-set-default-timeindex-in-edisgoset_time_series_active_power_predefined
…re-set-default-timeindex-in-edisgoset_time_series_active_power_predefined

Fix missing timeindex in set_time_series_active_power_predefined
…x in set_time_series_active_power_predefined
…re-set-default-timeindex-in-edisgoset_time_series_active_power_predefined

Overwrite timeindex if given timeindex differs from existing timeinde…
…re-set-default-timeindex-in-edisgoset_time_series_active_power_predefined

add logging and correct timeindex variable handling
…se-imports-not-working-ssh-tunnel-limitations
…re-set-default-timeindex-in-edisgoset_time_series_active_power_predefined

Feature/openego#456 feature set default timeindex in edisgoset time series active power predefined
…ompatibility-with-egon-project-data' into project/411-LoMa
…orts-not-working-ssh-tunnel-limitations' into project/411-LoMa
- Replaced direct use of copy.deepcopy with custom copy method in two places.
- Added a new `copy` method to the `EDisGo` class, supporting both shallow and deep copies while excluding the SQLAlchemy engine from being copied.
- Ensured proper restoration of the SQLAlchemy engine after copying.
…ase-imports-not-working-ssh-tunnel-limitations

Refactor object copying in EDisGo class
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.

[BUG] Inconsistent scaling in predefined_conventional_loads_by_sector()

3 participants