From 6149f4c96208331da6616583fad308acfe35302c Mon Sep 17 00:00:00 2001 From: Steven Murray Date: Tue, 5 Nov 2024 15:27:32 +0100 Subject: [PATCH] fix: set include_cross_pols to False if feed_array has length 1 --- src/pyuvdata/analytic_beam.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pyuvdata/analytic_beam.py b/src/pyuvdata/analytic_beam.py index 85c6a476f..14e93ce3c 100644 --- a/src/pyuvdata/analytic_beam.py +++ b/src/pyuvdata/analytic_beam.py @@ -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 )