@@ -311,9 +311,9 @@ def check_monitor_metadata(monitor):
311311 # no need for these, and it avoids duplication:
312312 assert 'detector_info' not in monitor .coords
313313 assert 'sample' not in monitor .coords
314- assert (
315- 'SampleTemp' not in monitor . coords
316- ), "Expect run logs not be duplicated in monitor workspaces"
314+ assert 'SampleTemp' not in monitor . coords , (
315+ "Expect run logs not be duplicated in monitor workspaces"
316+ )
317317
318318 def test_Workspace2D_with_separate_monitors (self ):
319319 from mantid .simpleapi import mtd
@@ -530,9 +530,9 @@ def test_convert_array_run_log(self):
530530 # Given a Mantid workspace with a run log
531531 target = mantid .CloneWorkspace (self .base_event_ws )
532532 log_name = "SampleTemp"
533- assert target .run ().hasProperty (
534- log_name
535- ), f'Expected input workspace to have a { log_name } run log'
533+ assert target .run ().hasProperty (log_name ), (
534+ f'Expected input workspace to have a { log_name } run log'
535+ )
536536
537537 # When the workspace is converted to a scipp data array
538538 dg = scn .mantid .convert_EventWorkspace_to_data_group (target , False )
@@ -555,9 +555,9 @@ def test_convert_scalar_run_log(self):
555555 # Given a Mantid workspace with a run log
556556 target = mantid .CloneWorkspace (self .base_event_ws )
557557 log_name = "start_time"
558- assert target .run ().hasProperty (
559- log_name
560- ), f'Expected input workspace to have a { log_name } run log'
558+ assert target .run ().hasProperty (log_name ), (
559+ f'Expected input workspace to have a { log_name } run log'
560+ )
561561
562562 # When the workspace is converted to a scipp data array
563563 dg = scn .mantid .convert_EventWorkspace_to_data_group (target , False )
0 commit comments