Skip to content

Commit

Permalink
Merge branch 'main' into fix-pol-selection
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-murray committed Aug 5, 2024
2 parents dbefddc + 41dbed3 commit d539610
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions hera_cal/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1007,11 +1007,13 @@ def _set_subslice(data_array, bl, this_waterfall):

# explicitly handle cross-polarized autos
if bl[0] == bl[1]:
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():
if pol_reversed_bl in dc:
_set_subslice(data_array, pol_reversed_bl, dc[pol_reversed_bl])
# ensure that we're not looking at (pseudo-)stokes visibilities
if polstr2num(bl[2], x_orientation=self.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():
if pol_reversed_bl in dc:
_set_subslice(data_array, pol_reversed_bl, dc[pol_reversed_bl])

return data_array

Expand Down

0 comments on commit d539610

Please sign in to comment.