Skip to content

Commit

Permalink
try fixing spectranization
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesll committed Mar 14, 2023
1 parent 7017968 commit 9bf774f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rampy/spectranization.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))

Expand Down

0 comments on commit 9bf774f

Please sign in to comment.