-
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.
Rationalize consistency checks on the number of columns (#2073)
# Context This is a preliminary work to place `maxHydroPumping` & `maxHydroGen` under sc-builder prefix "h", and remove prefix "hgp" introduced in CR23 (see #2068). This should also fix #2069. # Description - Add homogeneity in the checks performed on the number of columns for - Links (direct & indirect) (prefix "ntc) - Hydro (ror, storage & mingen) (prefix "h") - Thermal (prefix "t", not useful for now, but we may use this mechanism for fuelCost & co2Cost, to replace the custom `checkFuelCostColumnNumber` and `checkCO2CostColumnNumber` functions) - Declare TSNumbers before series. Otherwise we get a segfault since data members are initialized in the order where they appear in the class declaration. - Remove `EqualizeGenerationTSsizes` mechanism for `{ror, storage}` and `{ror, mingen}`. If only one column is present, use it, which is more or less equivalent to the column duplication made by `EqualizeGenerationTSsizes`. # TODO - [x] Add unit tests, especially to check that errors are emitted when they should. # Related work [Improve logs](#2080)
- Loading branch information
Showing
33 changed files
with
497 additions
and
346 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
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
Oops, something went wrong.