Skip to content

Commit

Permalink
fix(dayenu): typo when checking properties of stored sstream
Browse files Browse the repository at this point in the history
  • Loading branch information
ljgray committed Dec 10, 2024
1 parent 9c5d203 commit d8b6fa2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions draco/analysis/dayenu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8b6fa2

Please sign in to comment.