File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
tests/geophires_monte_carlo_tests Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,13 @@ def test_hip_ra_monte_carlo(self):
128
128
with open (result .json_output_file_path ) as f :
129
129
json_result = json .loads (f .read ())
130
130
self .assertIn ('Producible Electricity' , json_result )
131
+
132
+ # Note: it is possible, though unlikely, for the test to incorrectly fail (i.e. a false negative)
133
+ # if the random values generated happen to give valid results that are outside this range.
134
+ # If you experience intermittent test failures from the below lines (that are unrelated to HIP-RA code
135
+ # changes), then it probably means the expected range or settings file need to be adjusted to 'guarantee'
136
+ # the results can be confidently asserted. (Such as in
137
+ # https://github.com/NREL/GEOPHIRES-X/pull/178/commits/ec4db42fca5a90715ceb5143e18315d5f3d782b7)
131
138
self .assertLess (json_result ['Producible Electricity' ]['median' ], 1000 )
132
139
self .assertGreater (json_result ['Producible Electricity' ]['median' ], 20 )
133
140
You can’t perform that action at this time.
0 commit comments