From d3bb2f2b3242e852dc4896065aef030ae863b54c Mon Sep 17 00:00:00 2001 From: Stephanne Taylor Date: Wed, 8 Oct 2025 16:24:53 +0000 Subject: [PATCH] Add a numpy.any() to an array evaluation --- ttide/t_tide.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ttide/t_tide.py b/ttide/t_tide.py index 130ccc2..f033a23 100644 --- a/ttide/t_tide.py +++ b/ttide/t_tide.py @@ -427,7 +427,7 @@ def t_tide(xin, dt=1, stime=None, lat=None, # would be to change the basis functions. #################################################################### ii = np.flatnonzero(np.isfinite(jref)) - if ii: + if np.any(ii): print(' Do inference corrections\\n') snarg = nobsu * pi * dt * (fi[(ii - 1)] - fu[(jref[(ii - 1)] - 1)]) scarg = np.sin(snarg) / snarg