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

Simplify TS numbers drawings, fix bug related to refresh & local thermal generation #1752

Merged
merged 46 commits into from
Jan 11, 2024

Conversation

guilpier-code
Copy link
Contributor

@guilpier-code guilpier-code commented Nov 8, 2023

We intend to simplify and clarify the TS number management (specially source file timeseries-numbers.cpp).
For this we did several things :

  • For generated TS, separate resizing from generation, and call the resizing before drawing TS number, so that we have the definitive TS sizes before we draw the TS numbers : this is the main leverage for TS number management simplifications and clarification.
  • At construction, the 1-d matrix timeseriesNumbers is given zeros. This allows many simplifications and code reductions.
  • For productions (only for Load, Wind and Solar) that generate null TS (due to the configuration of their TS generator [see prepro capacity]), raise a warning somewhere for user to know.

@pull-request-size pull-request-size bot added size/M and removed size/S labels Nov 8, 2023
…rom TS generation and move it before TS number drawings
@pull-request-size pull-request-size bot added size/L and removed size/M labels Nov 8, 2023
Copy link
Contributor

@sylvlecl sylvlecl left a comment

Choose a reason for hiding this comment

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

A few minor comments

src/solver/ts-generator/generator.hxx Outdated Show resolved Hide resolved
{
for (auto i = areas.begin(); i != areas.end(); ++i)
Copy link
Contributor

Choose a reason for hiding this comment

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

We should use range-based for loop, no need for iterator.

Copy link
Contributor Author

@guilpier-code guilpier-code Dec 6, 2023

Choose a reason for hiding this comment

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

Done : for this, I used each()

src/solver/ts-generator/generator.hxx Outdated Show resolved Hide resolved
@@ -38,8 +38,6 @@ using namespace Yuni;
namespace Antares::Data

Choose a reason for hiding this comment

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

This PR contains console logs. Please review or remove them.

@flomnes flomnes changed the title Simplify TS numbers drawings Simplify TS numbers drawings, fix bug related to refresh & local thermal generation Dec 27, 2023
Copy link

sonarcloud bot commented Dec 27, 2023

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

15 New issues
0 Security Hotspots
48.4% Coverage on New Code
0.8% Duplication on New Code

See analysis details on SonarCloud

@flomnes flomnes merged commit e4b5762 into develop Jan 11, 2024
4 of 6 checks passed
@flomnes flomnes deleted the fix/simplify-ts-number-draws branch January 11, 2024 10:17
@flomnes flomnes mentioned this pull request Jan 11, 2024
flomnes added a commit that referenced this pull request Jan 11, 2024
Update reference results. They changed after #1752, in the case where
thermal refresh is enabled.
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.

None yet

5 participants