Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ttk
spam
Commits
890f27c7
Commit
890f27c7
authored
Nov 19, 2020
by
Gustavo Pinzon
Browse files
Bug in progressBar of getDisplacementFromNeighbours() and type in ddic
parent
507be1d0
Pipeline
#53116
passed with stages
in 13 minutes and 32 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
scripts/spam-ddic
View file @
890f27c7
...
...
@@ -238,7 +238,7 @@ if mpiRank == boss or not mpi:
deltaPhiNorm
=
prevCorr
[
"deltaPhiNorm"
]
labelDilateList
=
prevCorr
[
"LabelDilate"
]
error
=
prevCorr
[
"error"
]
PSCC
=
pevCorr
[
"PSCC"
]
PSCC
=
p
r
evCorr
[
"PSCC"
]
else
:
# Check if the correction of the input field is asked
if
args
.
CF
:
...
...
tools/deformation/deformationField.py
View file @
890f27c7
...
...
@@ -1147,6 +1147,9 @@ def getDisplacementFromNeighbours(labIm, DVC, fileName, method = 'getLabel', cen
PhiField
[
wrongLab
]
=
previousDVC
[
'PhiField'
][
wrongLab
]
# Add the incremental displacement
PhiField
[
wrongLab
][:
-
1
,
-
1
]
+=
Phi
[:
-
1
,
-
1
]
# Update the progressbar
widgets
[
0
]
=
progressbar
.
FormatLabel
(
"{}/{} "
.
format
(
i
,
numberOfLabels
))
pbar
.
update
(
i
)
# Save
outMatrix
=
numpy
.
array
([
numpy
.
array
(
range
(
numberOfLabels
)),
centresOfMass
[:,
0
],
centresOfMass
[:,
1
],
centresOfMass
[:,
2
],
...
...
Write
Preview
Supports
Markdown
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