Skip to content

Commit

Permalink
spec stats: missing nan
Browse files Browse the repository at this point in the history
  • Loading branch information
gauteh committed Sep 28, 2024
1 parent 1499e5b commit ec64bae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sfy-processing/sfy/xr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ec64bae

Please sign in to comment.