This will probably only happen if the user uses an absurdly large
blind window by mistake, but that shouldn't crash Hooke.
def _run(self, hooke, inqueue, outqueue, params):
z_data,d_data,params = self._setup(params)
start_index = 0
- while z_data[start_index] < params['blind window']:
+ while (start_index < len(z_data)
+ and z_data[start_index] < params['blind window']):
start_index += 1
median = medfilt(d_data[start_index:], params['median window'])
deriv = diff(median)