From 9bf774fb42a4843d4a79e1e7d6fc6da555981052 Mon Sep 17 00:00:00 2001 From: Charles Le Losq Date: Tue, 14 Mar 2023 10:21:19 +0100 Subject: [PATCH] try fixing spectranization --- rampy/spectranization.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rampy/spectranization.py b/rampy/spectranization.py index 238bee7..9015f3f 100644 --- a/rampy/spectranization.py +++ b/rampy/spectranization.py @@ -50,6 +50,8 @@ def spectrarray(name,sh,sf,x): def spectrataux(spectres): """Calculate the increase/decrease rate of each frequencies in a set of spectra. + WARNING : experimental function to fix. + Parameters ---------- spectres : ndarray @@ -269,7 +271,7 @@ def despiking(x, y, neigh=4, threshold = 3): """ y_out = y.copy() # So we don’t overwrite y for i in np.arange(len(spikes)): - y_smo = rp.smooth(x, y, method="savgol") + y_smo = rampy.smooth(x, y, method="savgol") rmse_local = np.sqrt((y-y_smo)**2) rmse_mean = np.sqrt(np.mean((y-y_smo)**2))