File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,6 @@ def _configure_logging(self):
123123 handlers .append (logging .FileHandler (self .file_path , mode = 'w' ))
124124 if self .log_to_console :
125125 handlers .append (rich_handler )
126- #handlers.append(logging.StreamHandler(sys.stdout))
127126
128127 # Add handlers directly to the logger
129128 for handler in handlers :
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ def helper_warmup(warm_up_period):
230230 )
231231 assert first_interval ['utilisation' ] == 0 , (
232232 'With no warm-up, expect first entry in interval audit to ' +
233- 'have utilisation of 0 but utilisation was ' +
233+ 'have utilisation of 0 but utilisation was ' +
234234 f'{ first_interval ['utilisation' ]} .'
235235 )
236236 assert first_interval ['queue_length' ] == 0 , (
@@ -476,17 +476,13 @@ def test_valid_cores(cores):
476476
477477def test_consistent_metrics ():
478478 """
479- Presently, the simulation code includes a few different methods to
480- calculate the same metrics. We would expect each to return similar results
481- (with a little tolerance, as expect some deviation due to methodological
482- differences).
479+ Expect utilisation to be pretty much the same, between the two methods
480+ implemented for calculating the overall mean utilisation.
483481 """
484482 # Run default model
485483 experiment = Runner (Param ())
486484 experiment .run_reps ()
487485
488- # Absolute tolerance (atol) = +- 0.001
489-
490486 # Check nurse utilisation
491487 pd .testing .assert_series_equal (
492488 experiment .run_results_df ['mean_nurse_utilisation' ],
You can’t perform that action at this time.
0 commit comments