Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions sotodlib/io/load_smurf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand All @@ -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
Expand Down
Loading