maybe nicer

This commit is contained in:
2026-01-05 14:50:22 +01:00
parent 9df9442111
commit bd44ea2fc6
+2 -2
View File
@@ -142,8 +142,8 @@ class Motor(Adjustable, SpecConvenienceProgress):
self._motor.put(low_name, low)
self._motor.put(high_name, high)
return
low = -np.inf if low is None else low
high = +np.inf if high is None else high
if low is None: low = -np.inf
if high is None: high = +np.inf
if relative_to_current:
val = self.get_current_value(pos_type=pos_type)
low += val