From f66227857dcb8edac60383491d223cc4841e5129 Mon Sep 17 00:00:00 2001 From: Erik Everson Date: Thu, 11 Jun 2026 19:19:08 -0700 Subject: [PATCH] Motor.config handle if speed is an AckFlags from the motor not being connected --- bapsf_motion/actors/motor_.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bapsf_motion/actors/motor_.py b/bapsf_motion/actors/motor_.py index 47080d56..f66337f8 100644 --- a/bapsf_motion/actors/motor_.py +++ b/bapsf_motion/actors/motor_.py @@ -1009,7 +1009,11 @@ def config(self) -> Dict[str, Any]: speed = self.motor["speed"] if isinstance(speed, u.Quantity): speed = speed.value - speed = float(speed) + try: + speed = float(speed) + except TypeError: + # Motor is likely connected and the stored value is an AckFlags + speed = 0.0 return { "name": self.name,