Commit ef5dee31 authored by payno's avatar payno

[operation][mapping] fix progress

parent 4daded49
Pipeline #6695 passed with stage
in 2 minutes and 47 seconds
......@@ -103,7 +103,7 @@ class IntensityMapping(_MappingBase):
self._resetIntensityMap()
self._resetDim()
for x in range(self.data.shape[-1]):
self.updateProgress(int(x / self.data.shape[-2] * 100.0))
self.updateProgress(int(x / self.data.shape[-1] * 100.0))
for y in range(self.data.shape[-2]):
# TODO: do this operation using a grid or something close
# but would have to find a way to write at the same position...
......@@ -129,7 +129,7 @@ class IntensityMapping(_MappingBase):
self.dims[axis].variance[y, x] = _variance
self.dims[axis].skewness[y, x] = _skewness
self.dims[axis].kurtosis[y, x] = _kurtosis
self.updateProgress(100)
self.registerOperation()
return self.dims
......
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