Commit ccec27cf authored by Theo Steininger's avatar Theo Steininger
Browse files

Small fix in Figure2D.

parent e6576692
Pipeline #13983 passed with stages
in 11 minutes and 10 seconds
...@@ -53,7 +53,7 @@ class DirectSmoothingOperator(SmoothingOperator): ...@@ -53,7 +53,7 @@ class DirectSmoothingOperator(SmoothingOperator):
wgt = [] wgt = []
expfac = 1. / (2. * sigma*sigma) expfac = 1. / (2. * sigma*sigma)
for i in range(x.size): for i in range(x.size):
if nval[i]>0: if nval[i] > 0:
t = x[ibegin[i]:ibegin[i]+nval[i]]-x[i] t = x[ibegin[i]:ibegin[i]+nval[i]]-x[i]
t = np.exp(-t*t*expfac) t = np.exp(-t*t*expfac)
t *= 1./np.sum(t) t *= 1./np.sum(t)
......
...@@ -25,10 +25,6 @@ class Figure2D(FigureFromPlot): ...@@ -25,10 +25,6 @@ class Figure2D(FigureFromPlot):
xaxis = False if (xaxis is None) else xaxis xaxis = False if (xaxis is None) else xaxis
yaxis = False if (yaxis is None) else yaxis yaxis = False if (yaxis is None) else yaxis
else:
width = None
height = None
super(Figure2D, self).__init__(plots, title, width, height) super(Figure2D, self).__init__(plots, title, width, height)
self.xaxis = xaxis self.xaxis = xaxis
self.yaxis = yaxis self.yaxis = yaxis
......
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