added debugging
@@ -399,8 +399,6 @@ class InterventionTests(CovaSimTest):
target_pop_count_channel,
target_pop_new_channel,
target_test_count_channel=None):
- if not target_test_count_channel:
- target_test_count = target_pop_count_channel # CK: unused
if test_sensitivity < 1.0:
raise ValueError("This test method only works with perfect test "
f"sensitivity. {test_sensitivity} won't cut it.")
@@ -428,6 +426,12 @@ class InterventionTests(CovaSimTest):
print(f"new diagnoses before, on, after start day: {new_diagnoses[start_day-1:start_day+2]}")
print(f"target count before, on, after start day: {target_count[start_day-1:start_day+2]}")
pass
+
+ print('looking at tests...')
+ print(new_tests)
+ print(target_test_count_channel)
+ print(new_diagnoses)
+ print(target_count)
self.assertEqual(new_tests[start_day],
target_test_count_channel[start_day],
msg=f"Should have each of the {target_test_count_channel[start_day]} targets"
