Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct the ts count for no gen thermal clusters ANT-1303 #1969

Merged
merged 4 commits into from
Mar 4, 2024

Conversation

payetvin
Copy link
Contributor

No description provided.

@payetvin payetvin added the bug Something isn't working label Feb 29, 2024
@payetvin payetvin self-assigned this Feb 29, 2024
Copy link
Member

@flomnes flomnes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong code. We need something like this

for (auto &cluster : clusters) {
  uint tsGenCount = cluster->tsGenBehavior == LocalTSGenerationBehavior::forceNoGen ? cluster->series.timeSeries.width : get_tsGenCount(study);
}

Otherwise one cluster may affect the next one, which is an unwanted side-effect.

@flomnes flomnes added to-backport Bugfix that needs to be backported and removed to-backport Bugfix that needs to be backported labels Feb 29, 2024
Copy link
Member

@flomnes flomnes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add unit tests ?

@pull-request-size pull-request-size bot added size/S and removed size/XS labels Mar 4, 2024
@flomnes flomnes merged commit 4906fe8 into develop Mar 4, 2024
5 checks passed
@flomnes flomnes deleted the fix/ts-thermal-gen branch March 4, 2024 13:58
payetvin added a commit that referenced this pull request Mar 18, 2024
@payetvin payetvin mentioned this pull request Mar 18, 2024
payetvin added a commit that referenced this pull request Mar 18, 2024
@payetvin payetvin mentioned this pull request Mar 18, 2024
flomnes added a commit that referenced this pull request Mar 26, 2024
Backport some bugfixes
#1969
#1960
#1982

---------

Co-authored-by: Florian OMNES <florian.omnes@rte-france.com>
flomnes added a commit that referenced this pull request Mar 26, 2024
Backport some bugfixes
 #1969
#1960
 #1982

---------

Co-authored-by: Florian OMNES <florian.omnes@rte-france.com>
@payetvin payetvin removed the to-backport Bugfix that needs to be backported label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants