Skip to content

Commit

Permalink
Update P11Collect.py
Browse files Browse the repository at this point in the history
Resolution was not changing if the difference was more than 0.01. This one should fix it. Tested at the beamline.
  • Loading branch information
agruzinov authored Nov 29, 2024
1 parent 2703f24 commit 9070e50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mxcubecore/HardwareObjects/DESY/P11Collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit 9070e50

Please sign in to comment.