From 553570c1f0823bdd43ffbeb82a42ddf7c313d7e6 Mon Sep 17 00:00:00 2001 From: Martin Losch <30285667+mjlosch@users.noreply.github.com> Date: Mon, 16 Dec 2024 16:57:11 +0100 Subject: [PATCH] adjust warning statement --- utils/python/MITgcmutils/MITgcmutils/density.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/python/MITgcmutils/MITgcmutils/density.py b/utils/python/MITgcmutils/MITgcmutils/density.py index f442b00da8..c4d1e0c19b 100644 --- a/utils/python/MITgcmutils/MITgcmutils/density.py +++ b/utils/python/MITgcmutils/MITgcmutils/density.py @@ -38,7 +38,8 @@ def _check_salinity(s): sneg = s<0 if not np.any(sneg): - warnings.warn('found negative salinity values, reset them to nan') + warnings.warn('found negative salinity values') + # warnings.warn('found negative salinity values, reset them to nan') # s[sneg] = np.nan return s