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
XRD
darfix
Commits
4fd2295c
Commit
4fd2295c
authored
Aug 10, 2021
by
Julia Garriga Ferrer
Browse files
[core][process] Checkout kind to choose transformation to apply
parent
969641f8
Changes
1
Show whitespace changes
Inline
Side-by-side
darfix/core/process.py
View file @
4fd2295c
...
...
@@ -282,11 +282,13 @@ class _Transformation:
dataset
,
indices
,
li_indices
,
bg_dataset
=
dataset
magnification
=
self
.
_properties
[
'magnification'
]
if
'magnification'
in
self
.
_properties
else
None
pixelSize
=
self
.
_properties
[
'pixelSize'
]
if
'pixelSize'
in
self
.
_properties
else
None
kind
=
self
.
_properties
[
'kind'
]
if
'kind'
in
self
.
_properties
else
True
rotate
=
self
.
_properties
[
'rotate'
]
if
'rotate'
in
self
.
_properties
else
None
if
dataset
and
dataset
.
dims
.
ndim
:
if
dataset
.
dims
.
ndim
==
1
:
if
dataset
.
dims
.
ndim
==
1
and
kind
:
dataset
.
compute_transformation
(
PixelSize
[
pixelSize
].
value
,
rotate
)
kind
=
"rsm"
,
rotate
=
rotate
)
else
:
dataset
.
compute_transformation
(
magnification
)
return
dataset
,
indices
,
li_indices
,
bg_dataset
...
...
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