From ec64bae2c8d535ff8933b5984a6755266802a23a Mon Sep 17 00:00:00 2001 From: Gaute Hope Date: Sat, 28 Sep 2024 09:48:21 +0200 Subject: [PATCH] spec stats: missing nan --- sfy-processing/sfy/xr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfy-processing/sfy/xr.py b/sfy-processing/sfy/xr.py index 162e0694..a468ab29 100644 --- a/sfy-processing/sfy/xr.py +++ b/sfy-processing/sfy/xr.py @@ -99,7 +99,7 @@ def stat(zz, yy, xx): if np.any(np.isnan(zz)): logger.warning(f'NaN values in signal, spectra is set to NaN') a = np.full((4096 // 2 + 1, ), np.nan) - return np.nan, np.nan, np.nan, np.nan, np.nan, np.nan, np.nan, np.nan, np.nan, np.nan, a, a, a, a + return np.nan, np.nan, np.nan, np.nan, np.nan, np.nan, np.nan, np.nan, np.nan, np.nan, a, np.nan, a, a, a f, Pz = signal.welch(freq, zz, nperseg, order) f, Py = signal.welch(freq, yy, nperseg, order)