Commit a40074fb authored by Christian Schneider's avatar Christian Schneider
Browse files

Set default maximum frequency to nyquist limit

parent 810106aa
......@@ -253,6 +253,9 @@ class fit_plugin(object):
params['f'].min = 0
if f_max is not None:
params['f'].max = f_max
else:
# Set default to nyquist limit
params['f'].max = 1/(self._data.x[1] - self._data.x[0])/2
params['amp'].min = 0
# Fitting ##############################################################
......
Markdown is supported
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