Skip to content

Commit

Permalink
Fix pyuvdata deprecation warning related to self.x_orientation vs. se…
Browse files Browse the repository at this point in the history
…lf.telescope.x_orientation
  • Loading branch information
jsdillon committed Oct 16, 2024
1 parent 0529798 commit f8f650e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hera_cal/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@ def _set_subslice(data_array, bl, this_waterfall):
# explicitly handle cross-polarized autos
if bl[0] == bl[1]:
# ensure that we're not looking at (pseudo-)stokes visibilities
if polstr2num(bl[2], x_orientation=self.x_orientation) < 0:
if polstr2num(bl[2], x_orientation=self.telescope.x_orientation) < 0:
if utils.split_pol(bl[2])[0] != utils.split_pol(bl[2])[1]:
pol_reversed_bl = utils.reverse_bl(bl)
if pol_reversed_bl not in dc.keys():
Expand Down

0 comments on commit f8f650e

Please sign in to comment.