From 22713d7964eba349b0caf4d1813fbf261d5eaa20 Mon Sep 17 00:00:00 2001 From: Steven Murray Date: Thu, 11 Jul 2024 14:13:37 +0200 Subject: [PATCH] remove warning for pol_convention in uvdata and uvcal --- src/pyuvdata/uvcal/uvcal.py | 7 ------- src/pyuvdata/uvdata/uvdata.py | 8 +------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/pyuvdata/uvcal/uvcal.py b/src/pyuvdata/uvcal/uvcal.py index 789b99918..200a43bba 100644 --- a/src/pyuvdata/uvcal/uvcal.py +++ b/src/pyuvdata/uvcal/uvcal.py @@ -1653,13 +1653,6 @@ def check( check_extra=check_extra, run_check_acceptability=run_check_acceptability ) - # Check consistency between pol_convention and units of data - if self.pol_convention is None: - warnings.warn( - "pol_convention is unset. This leaves the " - "convention ambiguous. Consider setting pol_convention to 'sum' or 'avg'." - ) - # then run telescope object check self.telescope.check( check_extra=check_extra, run_check_acceptability=run_check_acceptability diff --git a/src/pyuvdata/uvdata/uvdata.py b/src/pyuvdata/uvdata/uvdata.py index 1fa8cf240..f551146ad 100644 --- a/src/pyuvdata/uvdata/uvdata.py +++ b/src/pyuvdata/uvdata/uvdata.py @@ -2215,13 +2215,7 @@ def check( logger.debug("... Done UVBase Check") # Check consistency between pol_convention and units of data - if self.vis_units != "uncalib" and self.pol_convention is None: - warnings.warn( - "pol_convention is unset and the data is calibrated. This leaves the " - "convention ambiguous. Consider setting pol_convention to 'sum' or " - "'avg'." - ) - elif self.vis_units == "uncalib" and self.pol_convention is not None: + if self.vis_units == "uncalib" and self.pol_convention is not None: raise ValueError( "pol_convention is set but the data is uncalibrated. This " "is not allowed."