Commit f43aa310 authored by Michael Rudolf's avatar Michael Rudolf
Browse files

Fixed bug remaining from debugging the new filter

parent 781641aa
......@@ -70,7 +70,7 @@ def eval_shearstress(cur_dat, var, review=None):
def _auto_pick(cur_dat, var):
"""Helper function to automatically pick the points"""
# smoothing function: 1st#: window size, 2nd#: polynomial order
shear_smth = medfilt(cur_dat['shearstress'], 11)
shear_smth = medfilt(cur_dat['shearstress'], int(var['smoothwindow']))
# Processing
velnoise, stressnoise = var['velnoise'], var['stressnoise']
# Searching for velocity changes to define data range
......@@ -208,7 +208,7 @@ def eval_shearstress(cur_dat, var, review=None):
ax.plot(cur_dat['displacement'],
cur_dat['shearstress'],
label='original data')
shear_smth = medfilt(cur_dat['shearstress'], 11)
shear_smth = medfilt(cur_dat['shearstress'], int(var['smoothwindow']))
ax.plot(cur_dat['displacement'],
shear_smth,
':',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment