Skip to content

Commit 34af5a5

Browse files
rhfoghmarcus-oscarsson
authored andcommitted
Fixed ruff formatting
1 parent 0effef6 commit 34af5a5

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

mxcubecore/HardwareObjects/SOLEIL/PX2/PX2Collect.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,7 @@ def emit_collection_finished(self):
318318
self.store_image_in_lims_by_frame_num(last_frame)
319319
if (
320320
self.current_dc_parameters["experiment_type"] in ("OSC", "Helical")
321-
and self.current_dc_parameters["oscillation_sequence"][0]["offset"]
322-
== 0
321+
and self.current_dc_parameters["oscillation_sequence"][0]["offset"] == 0
323322
and last_frame > 19
324323
):
325324
self.trigger_auto_processing("after", self.current_dc_parameters, 0)

mxcubecore/HardwareObjects/abstract/AbstractCollect.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,7 @@ def collection_finished(self):
351351
self.store_image_in_lims_by_frame_num(last_frame)
352352
if (
353353
self.current_dc_parameters["experiment_type"] in ("OSC", "Helical")
354-
and self.current_dc_parameters["oscillation_sequence"][0]["offset"]
355-
== 0
354+
and self.current_dc_parameters["oscillation_sequence"][0]["offset"] == 0
356355
and last_frame > 19
357356
):
358357
self.trigger_auto_processing("after", 0)

mxcubecore/HardwareObjects/mockup/CollectMockup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ def emit_collection_finished(self):
9393
self.store_image_in_lims_by_frame_num(last_frame)
9494
if (
9595
self.current_dc_parameters["experiment_type"] in ("OSC", "Helical")
96-
and self.current_dc_parameters["oscillation_sequence"][0]["offset"]
97-
== 0
96+
and self.current_dc_parameters["oscillation_sequence"][0]["offset"] == 0
9897
and last_frame > 19
9998
):
10099
self.trigger_auto_processing("after", 0)

0 commit comments

Comments
 (0)