-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #295 from NREL/logic_validator
Add validation for common apply logic error.
- Loading branch information
Showing
8 changed files
with
155 additions
and
13 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
26 changes: 26 additions & 0 deletions
26
buildstockbatch/test/test_inputs/enforce-validate-options-all-good.yml
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,26 @@ | ||
buildstock_directory: test_openstudio_buildstock | ||
project_directory: project_singlefamilydetached | ||
baseline: | ||
n_datapoints: 30 | ||
n_buildings_represented: 81221016 | ||
sampling_algorithm: quota | ||
upgrades: | ||
- upgrade_name: good upgrade | ||
options: | ||
- option: Vintage|<1940 | ||
apply_logic: | ||
- or: | ||
- Insulation Slab|Good Option | ||
- Insulation Slab|None | ||
- not: Insulation Wall|Good Option | ||
- and: | ||
- Vintage|1960s||Vintage|1960s | ||
- Insulation Slab|None | ||
- option: Insulation Finished Basement|Good Option | ||
apply_logic: | ||
- Insulation Unfinished Basement|Extra Argument | ||
package_apply_logic: Vintage|1960s||Vintage|1940s | ||
downselect: | ||
logic: Vintage|2000s | ||
resample: False | ||
schema_version: 0.3 |
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