Skip to content

Commit

Permalink
Changed check on pol_convention attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
adeliegorce committed Jul 19, 2024
1 parent 6fcaeb6 commit 26ac507
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions hera_pspec/pstokes.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,8 @@ def _combine_pol(uvd1, uvd2, pol1, pol2, pstokes='pI', x_orientation=None):
"uvd2 must be a pyuvdata.UVData instance"

for i, uvd in enumerate([uvd1, uvd2]):
try:
uvd.pol_convention
except AttributeError:
pol_convention = getattr(uvd, 'pol_convention', None)
if pol_convention is None:
warnings.warn(
f'No polarization convention in uvd{i+1}. '
'Considering it to be "avg".')
Expand Down

0 comments on commit 26ac507

Please sign in to comment.