diff --git a/sotodlib/io/load_smurf.py b/sotodlib/io/load_smurf.py index cd1bc61fb..b07dc4459 100644 --- a/sotodlib/io/load_smurf.py +++ b/sotodlib/io/load_smurf.py @@ -2259,7 +2259,11 @@ def __init__(self, status): self.aman = self.aman.wrap("filter_enabled", self.filter_enabled) ds_root = "AMCc.SmurfProcessor.Downsampler" - self.downsample_factor = self.status.get(f"{ds_root}.Factor") + # pysmurf renamed Downsampler.Factor to InternalFactor (pysmurf #717); + # older status dumps carry the old name. + self.downsample_factor = self.status.get( + f"{ds_root}.InternalFactor", self.status.get(f"{ds_root}.Factor") + ) self.aman = self.aman.wrap("downsample_factor", self.downsample_factor) self.downsample_enabled = not self.status.get(f"{ds_root}.Disable") @@ -2276,8 +2280,12 @@ def __init__(self, status): band_root = band_roots[band] band_center = self.status.get(f"{band_root}.bandCenterMHz") subband_offset = self.status.get(f"{band_root}.toneFrequencyOffsetMHz") + # Firmware >= MicrowaveMuxBpEthGen2 v2.3.0 (rogue 6 list variables) + # names the per-channel offset array in MHz centerFrequencyMHz; + # older status dumps carry centerFrequencyArray. channel_offset = self.status.get( - f"{band_root}.CryoChannels.centerFrequencyArray" + f"{band_root}.CryoChannels.centerFrequencyMHz", + self.status.get(f"{band_root}.CryoChannels.centerFrequencyArray"), ) # Skip band if one of these fields is None