-
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.
Merge pull request #450 from NREL/os380
OpenStudio version required in projects, using version in ResStock develop for CI
- Loading branch information
Showing
12 changed files
with
78 additions
and
57 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
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 |
---|---|---|
|
@@ -10,25 +10,26 @@ | |
|
||
|
||
def test_custom_gem_install(basic_residential_project_file): | ||
project_filename, results_dir = basic_residential_project_file() | ||
project_filename, results_dir = basic_residential_project_file( | ||
update_args={ | ||
"os_version": "3.7.0", | ||
"baseline": { | ||
"custom_gems": True, | ||
"n_buildings_represented": 80000000, | ||
}, | ||
"aws": { | ||
"job_identifier": "testaws", | ||
"s3": {"bucket": "resbldg-datasets", "prefix": "testing/external_demo_project"}, | ||
"region": "us-west-2", | ||
"use_spot": True, | ||
"batch_array_size": 100, | ||
"notifications_email": "[email protected]", | ||
}, | ||
} | ||
) | ||
|
||
# Add aws and custom_gems to the project file | ||
with open(project_filename, "r") as f: | ||
cfg = yaml.safe_load(f) | ||
# custom_gems | ||
cfg["baseline"]["custom_gems"] = True | ||
# AWS | ||
cfg["aws"] = {} | ||
cfg["aws"]["job_identifier"] = "testaws" | ||
cfg["aws"]["s3"] = {} | ||
cfg["aws"]["s3"]["bucket"] = "resbldg-datasets" | ||
cfg["aws"]["s3"]["prefix"] = "testing/external_demo_project" | ||
cfg["aws"]["region"] = "us-west-2" | ||
cfg["aws"]["use_spot"] = True | ||
cfg["aws"]["batch_array_size"] = 100 | ||
cfg["aws"]["notifications_email"] = "[email protected]" | ||
with open(project_filename, "w") as f: | ||
yaml.dump(cfg, f) | ||
|
||
buildstock_directory = cfg["buildstock_directory"] | ||
|
||
|
@@ -49,23 +50,23 @@ def test_custom_gem_install(basic_residential_project_file): | |
|
||
|
||
def test_no_custom_gem_install(basic_residential_project_file): | ||
project_filename, results_dir = basic_residential_project_file() | ||
project_filename, results_dir = basic_residential_project_file( | ||
update_args={ | ||
"os_version": "3.7.0", | ||
"aws": { | ||
"job_identifier": "testaws", | ||
"s3": {"bucket": "resbldg-datasets", "prefix": "testing/external_demo_project"}, | ||
"region": "us-west-2", | ||
"use_spot": True, | ||
"batch_array_size": 100, | ||
"notifications_email": "[email protected]", | ||
}, | ||
} | ||
) | ||
|
||
# Add aws to the project file | ||
with open(project_filename, "r") as f: | ||
cfg = yaml.safe_load(f) | ||
# AWS | ||
cfg["aws"] = {} | ||
cfg["aws"]["job_identifier"] = "testaws" | ||
cfg["aws"]["s3"] = {} | ||
cfg["aws"]["s3"]["bucket"] = "resbldg-datasets" | ||
cfg["aws"]["s3"]["prefix"] = "testing/external_demo_project" | ||
cfg["aws"]["region"] = "us-west-2" | ||
cfg["aws"]["use_spot"] = True | ||
cfg["aws"]["batch_array_size"] = 100 | ||
cfg["aws"]["notifications_email"] = "[email protected]" | ||
with open(project_filename, "w") as f: | ||
yaml.dump(cfg, f) | ||
|
||
buildstock_directory = cfg["buildstock_directory"] | ||
|
||
|
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
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