-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify TS numbers draws : resize mingen TS when hydro TS are generated
Behavior before this commit : When hydro TS are generated, mingen are not generated : it is sized with 1 column. So (given an area and a year) a TS number for ror and storage does not apply to mingen in this case. It causes extra complexity in class TimeSeries to handle this. Note that, still in this case (hydro TS are generated), the only mingen TS is filled with zeros. Behavior after this commit : We remove the complexity in class TimeSeries by doing the following : If hydro TS are generated, mingen TS matrix is resized to the number of TS to be generated and filled with zeros. So we still have a mingen of zeros.
- Loading branch information
1 parent
95c631c
commit 19df9ac
Showing
3 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters