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

Remove hydro hotstart [ANT-1815] #2131

Merged
merged 18 commits into from
Jun 17, 2024
Merged

Remove hydro hotstart [ANT-1815] #2131

merged 18 commits into from
Jun 17, 2024

Conversation

payetvin
Copy link
Contributor

@payetvin payetvin commented May 30, 2024

AntaresSimulatorTeam/Antares_Simulator_Tests_NR#24

Previously, the default value for property initial-reservoir-levels was cold start.

@payetvin payetvin self-assigned this May 30, 2024
@pull-request-size pull-request-size bot added size/XL and removed size/L labels Jun 3, 2024
Copy link
Contributor

@guilpier-code guilpier-code left a comment

Choose a reason for hiding this comment

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

Shouldn't we update the changelog.txt ?
Maybe we could add a new v9.2 section (if not already there), and leave a comment inside about hydro start removal

src/libs/antares/study/parameters.cpp Show resolved Hide resolved
@@ -167,10 +167,9 @@ class PartHydro
// As this function can be called a lot of times, we pass working variables and returned variables
// as arguments, so that we don't have to create them locally (as in a classical function) each
// time.
void getWaterValue(const double& level,
double getWaterValue(const double& level,
Copy link
Contributor

Choose a reason for hiding this comment

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

Took advantage of the hydro hot start removal to make some quick and small cleanings.

guilpier-code
guilpier-code previously approved these changes Jun 3, 2024
@guilpier-code guilpier-code self-requested a review June 3, 2024 15:30
Copy link
Contributor

@guilpier-code guilpier-code left a comment

Choose a reason for hiding this comment

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

As you can see, we have failures on CI.
We should solve this problem of failures.

@guilpier-code guilpier-code dismissed their stale review June 3, 2024 15:32

Because of the failures on CI

@@ -587,20 +587,6 @@ _**This section is under construction**_
## Other parameters
These parameters are listed under the `[other preferences]` section in the `.ini` file.

---
Copy link
Contributor

Choose a reason for hiding this comment

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

i think we have to write somewhere that this option is deprecated

@@ -156,14 +156,12 @@ AdvancedParameters::AdvancedParameters(wxWindow* parent) :
// Initial reservoir levels
{
label = Component::CreateLabel(this, wxT("Initial reservoir levels"));
button = new Component::Button(this, wxT("cold start"), "images/16x16/tag.png");
button = new Component::Button(this, wxT(""), "images/16x16/tag.png");
Copy link
Contributor

Choose a reason for hiding this comment

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

why not delete the button?

Copy link
Contributor

Choose a reason for hiding this comment

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

Because we should leave a trace that this functionality (hydro hot start) used to exist but no longer does (deprecation).

@pull-request-size pull-request-size bot added size/L and removed size/XL labels Jun 7, 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.

Almost good, minor remarks

src/libs/antares/study/parameters.cpp Outdated Show resolved Hide resolved
@payetvin payetvin requested a review from flomnes June 13, 2024 09:17
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
D Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

@flomnes flomnes merged commit 6edcad8 into develop Jun 17, 2024
6 of 7 checks passed
@flomnes flomnes deleted the fix/hotstart branch June 17, 2024 12:28
@payetvin payetvin added this to the Sprint 5 milestone Jun 20, 2024
@payetvin payetvin changed the title Remove hydro hotstart Remove hydro hotstart [ANT-1815] Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants