Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
payno
id06workflow
Commits
ef5dee31
Commit
ef5dee31
authored
Nov 30, 2018
by
payno
Browse files
[operation][mapping] fix progress
parent
4daded49
Pipeline
#6695
passed with stage
in 2 minutes and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
id06workflow/core/operation/mapping.py
View file @
ef5dee31
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment