-
Notifications
You must be signed in to change notification settings - Fork 2
Update VAVTurndownDuringReheat Untested outcome
#59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
35e9104
72d2bef
2cc22f6
71053f5
a8638a7
4a5f96d
a17dc48
919d182
6a82de5
81e2634
b7e93ab
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -91,7 +91,7 @@ def test_vav_turndown_during_reheat_fail(self): | |
| binary_result = verification_obj.check_bool() | ||
| self.assertFalse(binary_result) | ||
|
|
||
| def test_vav_turndown_during_reheat_untested(self): | ||
| def test_vav_turndown_during_reheat_no_reheat_untested(self): | ||
| points = [ | ||
| "reheat_coil_flag", | ||
| "V_dot_VAV", | ||
|
|
@@ -127,3 +127,77 @@ def test_vav_turndown_during_reheat_untested(self): | |
|
|
||
| self.assertEqual(results, expected_results) | ||
| self.assertEqual(verification_obj.check_bool(), "Untested") | ||
|
|
||
| def test_vav_turndown_during_reheat_all_reheat_untested(self): | ||
| points = [ | ||
| "reheat_coil_flag", | ||
| "V_dot_VAV", | ||
| "V_dot_VAV_max", | ||
| ] | ||
|
|
||
| timestamp = [ | ||
| datetime(2024, 8, 1, 12, 0, 0), | ||
| datetime(2024, 8, 1, 13, 0, 0), | ||
| datetime(2024, 8, 1, 14, 0, 0), | ||
| datetime(2024, 8, 1, 15, 0, 0), | ||
| ] | ||
|
|
||
| data = [ | ||
| [True, 350, 620], | ||
| [True, 370, 620], | ||
| [True, 360, 620], | ||
| [True, 380, 620], | ||
| ] | ||
|
|
||
| df = pd.DataFrame(data, columns=points, index=timestamp) | ||
|
|
||
| verification_obj = run_test_verification_with_data( | ||
| "VAVTurndownDuringReheat", df | ||
| ) | ||
| results = list(verification_obj.result) | ||
| expected_results = [ | ||
| "Untested", | ||
| "Untested", | ||
| "Untested", | ||
| "Untested", | ||
| ] | ||
|
|
||
| self.assertEqual(results, expected_results) | ||
| self.assertEqual(verification_obj.check_bool(), "Untested") | ||
|
|
||
| def test_vav_turndown_during_reheat_zero_V_dot_VAV_max_untested(self): | ||
| points = [ | ||
| "reheat_coil_flag", | ||
| "V_dot_VAV", | ||
| "V_dot_VAV_max", | ||
| ] | ||
|
|
||
| timestamp = [ | ||
| datetime(2024, 8, 1, 12, 0, 0), | ||
| datetime(2024, 8, 1, 13, 0, 0), | ||
| datetime(2024, 8, 1, 14, 0, 0), | ||
| datetime(2024, 8, 1, 15, 0, 0), | ||
| ] | ||
|
|
||
| data = [ | ||
| [True, 350, 0], | ||
| [True, 370, 0], | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. seems like this is the only difference from the previous test. Should the error log being asserted in the test?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good point. One thing I don't understand is that when I added the following code at the end of the unit test (line 284), the with self.assertLogs() as logobs:
self.assertEqual(
"ERROR:root:Any `V_dot_VAV_max` value shouldn't be zero.",
logobs.output[0],
) |
||
| [True, 360, 620], | ||
| [True, 380, 620], | ||
| ] | ||
|
|
||
| df = pd.DataFrame(data, columns=points, index=timestamp) | ||
|
|
||
| verification_obj = run_test_verification_with_data( | ||
| "VAVTurndownDuringReheat", df | ||
| ) | ||
| results = list(verification_obj.result) | ||
| expected_results = [ | ||
| "Untested", | ||
| "Untested", | ||
| "Untested", | ||
| "Untested", | ||
| ] | ||
|
|
||
| self.assertEqual(results, expected_results) | ||
| self.assertEqual(verification_obj.check_bool(), "Untested") | ||
Uh oh!
There was an error while loading. Please reload this page.