From 9070e504316de7dd26838c19b8b092528fe7cf5f Mon Sep 17 00:00:00 2001 From: agruzinov <78498907+agruzinov@users.noreply.github.com> Date: Fri, 29 Nov 2024 17:24:11 +0100 Subject: [PATCH] Update P11Collect.py Resolution was not changing if the difference was more than 0.01. This one should fix it. Tested at the beamline. --- mxcubecore/HardwareObjects/DESY/P11Collect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mxcubecore/HardwareObjects/DESY/P11Collect.py b/mxcubecore/HardwareObjects/DESY/P11Collect.py index fd4af8784b..baecd5622c 100644 --- a/mxcubecore/HardwareObjects/DESY/P11Collect.py +++ b/mxcubecore/HardwareObjects/DESY/P11Collect.py @@ -117,8 +117,8 @@ def set_resolution(self, value): Args: value (float): Resolution value to set. """ - if math.isclose(HWR.beamline.resolution.get_value(), value, abs_tol=0.01): - super().set_resolution(value) + if not math.isclose(HWR.beamline.resolution.get_value(), value, abs_tol=0.01): + HWR.beamline.resolution.set_value(value) def data_collection_hook(self): """Handles site-specific data collection processes."""