-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated HPWH_sizing logic, Added workflow testing
- Loading branch information
1 parent
89fcec8
commit 46bcbdd
Showing
4 changed files
with
287 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
{ | ||
"workflow_name": "HPWH workflow", | ||
"meta": { | ||
"author": "Yun Joon Jung", | ||
"date": "08/26/2024", | ||
"version": "1.0", | ||
"description": "Demo workflow to showcase core Workflow API functionalities" | ||
}, | ||
"imports": [ | ||
"numpy as np", | ||
"pandas as pd", | ||
"glob" | ||
], | ||
"states": { | ||
"load timeseries data": { | ||
"Type": "MethodCall", | ||
"MethodCall": "DataProcessing", | ||
"Parameters": { | ||
"data_path": "./demo/hpwh_demo/IECC-state-current-5B_ApartmentMidRise_STD2021_WA-Spokane-WA.csv", | ||
"data_source": "EnergyPlus" | ||
}, | ||
"Payloads": {"data_processing_obj": "$", "data": "$.data"}, | ||
"Start": "True", | ||
"Next": "load original verification case" | ||
}, | ||
"load original verification case": { | ||
"Type": "MethodCall", | ||
"MethodCall": "VerificationCase", | ||
"Parameters": { | ||
"json_case_path": "./demo/hpwh_demo/hpwh_demo_verification_cases.json" | ||
}, | ||
"Payloads": { | ||
"verification_case_obj": "$", | ||
"original_case_keys": "$.case_suite.keys()" | ||
}, | ||
"Next": "setup verification" | ||
}, | ||
"setup verification": { | ||
"Type": "MethodCall", | ||
"MethodCall": "Verification", | ||
"Parameters": {"verifications": "Payloads['verification_case_obj']"}, | ||
"Payloads": {"verification_obj": "$"}, | ||
"Next": "configure verification runner" | ||
}, | ||
"configure verification runner": { | ||
"Type": "MethodCall", | ||
"MethodCall": "Payloads['verification_obj'].configure", | ||
"Parameters": { | ||
"output_path": "./demo/hpwh_demo/outputs", | ||
"lib_items_path": "./schema/library.json", | ||
"plot_option": "+x None", | ||
"fig_size": "+x (6, 5)", | ||
"num_threads": 1, | ||
"preprocessed_data": "Payloads['data']" | ||
}, | ||
"Payloads": {}, | ||
"Next": "run verification" | ||
}, | ||
"run verification": { | ||
"Type": "MethodCall", | ||
"MethodCall": "Payloads['verification_obj'].run", | ||
"Parameters": {}, | ||
"Payloads": {"verification_return": "$"}, | ||
"Next": "reporting_object_instantiation" | ||
}, | ||
"reporting_object_instantiation": { | ||
"Type": "MethodCall", | ||
"MethodCall": "Reporting", | ||
"Parameters": { | ||
"verification_json": "./demo/hpwh_demo/outputs/*_md.json", | ||
"result_md_name": "report_summary.md", | ||
"report_format": "markdown" | ||
}, | ||
"Payloads": {"reporting_obj": "$"}, | ||
"Next": "report cases" | ||
}, | ||
"report cases": { | ||
"Type": "MethodCall", | ||
"MethodCall": "Payloads['reporting_obj'].report_multiple_cases", | ||
"Parameters": {}, | ||
"Payloads": {}, | ||
"Next": "Success" | ||
}, | ||
"Success": { | ||
"Type": "MethodCall", | ||
"MethodCall": "print", | ||
"Parameters": [ | ||
"Congratulations! the demo workflow is executed with expected results and no error!" | ||
], | ||
"Payloads": {}, | ||
"End": "True" | ||
} | ||
} | ||
} |
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