Script execution
This commit is contained in:
@@ -16,8 +16,6 @@ def fit(ydata, xdata = None, draw_plot = True):
|
||||
|
||||
gaussians = fit_gaussians(ydata, xdata, [index_max,])
|
||||
if gaussians[0] is None:
|
||||
if draw_plot:
|
||||
p.addMarker(max_x, None, "Max="+str(round(max_x,4)), Color.GRAY)
|
||||
print "Fitting error - returning maximum: " + str(max_x)
|
||||
return (None, max_x, None)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user