Skip to content

Commit 1da57f0

Browse files
committed
chore(linting): linting .py files
1 parent 227f3e2 commit 1da57f0

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

simulation/logging.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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:

tests/test_unittest_model.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff 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

477477
def 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'],

0 commit comments

Comments
 (0)