diff --git a/tangostationcontrol/tangostationcontrol/devices/sdp/sdp.py b/tangostationcontrol/tangostationcontrol/devices/sdp/sdp.py index b740bad556dc417abe00fe5f1d1cc92ff382dbc2..c5b2968d9715779907834de2d561fda82c842b90 100644 --- a/tangostationcontrol/tangostationcontrol/devices/sdp/sdp.py +++ b/tangostationcontrol/tangostationcontrol/devices/sdp/sdp.py @@ -217,7 +217,11 @@ class SDP(opcua_device): raise ValueError(f"Could not determine Nyquist zone for antenna type {self.AntennaType} with clock {clock} Hz") def read_nyquist_zone_R(self): - return self._nyquist_zone(self.read_attribute("clock_RW")) + try: + return self._nyquist_zone(self.read_attribute("clock_RW")) + except ValueError: + # Supply a sane default for computations in tests until L2SDP-725 allows us to read back the set clock + return 0 def read_clock_RW(self): # We can only return a single value, so we assume the FPGA is configured coherently. Which is something