Skip to content

Commit

Permalink
Updated test_simulation.py to properly account for averages with R_t
Browse files Browse the repository at this point in the history
  • Loading branch information
mghosh00 committed Mar 7, 2024
1 parent 49cf5e7 commit b57b371
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,8 @@ def test_write_to_Rt_file(self, mock_mkdir, time=1):
# Need to use np.testing for the NaNs
# Need to test keys and values separately in case we are using
# python 3.7 (for which np.testing.assert_equal will not work)
if sys.version_info[0] >= 3 or sys.version_info[1] >= 8:
major, minor = sys.version_info[0], sys.version_info[1]
if major >= 4 or (major == 3 and minor >= 8):
actual_dict_1 = calls[0].args[0]
for key in dict_1:
self.assertTrue(key in actual_dict_1)
Expand Down

0 comments on commit b57b371

Please sign in to comment.