Skip to content

Addition and subtraction of time profiles#92

Open
trulsf wants to merge 1 commit intomainfrom
tf/add_profiles
Open

Addition and subtraction of time profiles#92
trulsf wants to merge 1 commit intomainfrom
tf/add_profiles

Conversation

@trulsf
Copy link
Member

@trulsf trulsf commented Mar 26, 2026

Initial attempt at better support for addition and subtraction of time profiles (see #91).

There is still some open questions to be discussed.

  • Should there be more explicit errors for addition of profiles not supported (e.g. ScenarioProfile + RepresentativeProfile) or should we make the effort to support all combinations?
  • Should arithmetic support also be extended to StrategicStochasticProfile?

There is also the question about changing the behavior of what to do when using too short profiles for a time structure. Should we return an error instead of repeating the last, as we do today? This will be a breaking change so I think we should consider it for a separate PR.

@trulsf trulsf requested review from JulStraus and hellemo March 26, 2026 08:27
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.

1 participant