-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement
DataValidator.apply()
(#368)
Co-authored-by: Philip Hackstock <20710924+phackstock@users.noreply.github.com>
- Loading branch information
1 parent
6efc8d9
commit 18c0b12
Showing
6 changed files
with
93 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
- region: World | ||
variable: Final Energy | ||
- variable: Final Energy | ||
year: 2010 | ||
upper_bound: 2.5 | ||
lower_bound: 1 | ||
|
11 changes: 11 additions & 0 deletions
11
tests/data/validation/validate_data/validate_data_fails.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# 2005 value passes the validation, but the 2010 value does not | ||
- variable: Primary Energy | ||
upper_bound: 5. | ||
# variable exists only for 'scen_a' | ||
- variable: Primary Energy|Coal | ||
lower_bound: 2 | ||
# both upper and lower bound are triggered | ||
- variable: Primary Energy | ||
year: 2005 | ||
upper_bound: 1.9 | ||
lower_bound: 1.1 |
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