Skip to content

Commit

Permalink
fix: set include_cross_pols to False if feed_array has length 1
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-murray committed Nov 5, 2024
1 parent 4e6f3ed commit 6149f4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pyuvdata/analytic_beam.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ def __post_init__(self, include_cross_pols):
"x_orientation must be specified for linear polarization feeds"
)

if len(self.feed_array) == 1:
include_cross_pols = False

self.polarization_array, _ = _convert_feeds_to_pols(
self.feed_array, include_cross_pols, x_orientation=self.x_orientation
)
Expand Down

0 comments on commit 6149f4c

Please sign in to comment.