From d8b6fa241592094c95fdfe4f86a88af29342d5fd Mon Sep 17 00:00:00 2001 From: Liam Gray Date: Tue, 10 Dec 2024 16:31:18 -0700 Subject: [PATCH] fix(dayenu): typo when checking properties of stored sstream --- draco/analysis/dayenu.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/draco/analysis/dayenu.py b/draco/analysis/dayenu.py index 789e01bf..23b654ea 100644 --- a/draco/analysis/dayenu.py +++ b/draco/analysis/dayenu.py @@ -580,19 +580,19 @@ def process(self, hv): self.sstream.redistribute(["ra", "time"]) # Validate that both hybrid beamformed visibilites match - if not np.array_equal(self.stream.freq, hv.freq): + if not np.array_equal(self.sstream.freq, hv.freq): raise ValueError("Frequencies do not match for hybrid visibilities.") - if not np.array_equal(self.stream.index_map["el"], hv.index_map["el"]): + if not np.array_equal(self.sstream.index_map["el"], hv.index_map["el"]): raise ValueError("Elevations do not match for hybrid visibilities.") - if not np.array_equal(self.stream.index_map["ew"], hv.index_map["ew"]): + if not np.array_equal(self.sstream.index_map["ew"], hv.index_map["ew"]): raise ValueError("EW baselines do not match for hybrid visibilities.") - if not np.array_equal(self.stream.index_map["pol"], hv.index_map["pol"]): + if not np.array_equal(self.sstream.index_map["pol"], hv.index_map["pol"]): raise ValueError("Polarisations do not match for hybrid visibilities.") - if not np.array_equal(self.stream.ra, hv.ra): + if not np.array_equal(self.sstream.ra, hv.ra): raise ValueError("Right Ascension do not match for hybrid visibilities.") npol, nfreq, new, nel, ntime = hv.vis.local_shape