From 957eed13316898593aabce67f3a4782dd8494be8 Mon Sep 17 00:00:00 2001 From: Oliver Jahn Date: Wed, 18 Dec 2024 10:22:44 -0500 Subject: [PATCH] MITgcmutils: fix bug in negative salinity check --- utils/python/MITgcmutils/MITgcmutils/density.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/python/MITgcmutils/MITgcmutils/density.py b/utils/python/MITgcmutils/MITgcmutils/density.py index c4d1e0c19b..939831b2fa 100644 --- a/utils/python/MITgcmutils/MITgcmutils/density.py +++ b/utils/python/MITgcmutils/MITgcmutils/density.py @@ -37,7 +37,7 @@ def _check_salinity(s): sneg = s<0 - if not np.any(sneg): + if np.any(sneg): warnings.warn('found negative salinity values') # warnings.warn('found negative salinity values, reset them to nan') # s[sneg] = np.nan