Skip to content
GitLab
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
4cd01777
Commit
4cd01777
authored
Jun 07, 2021
by
Julia Garriga Ferrer
Browse files
[core][dataset] Apply 2D ROI to the transformation matrices
parent
1855979d
Changes
1
Hide whitespace changes
Inline
Side-by-side
darfix/core/dataset.py
View file @
4cd01777
...
...
@@ -720,6 +720,9 @@ class Dataset():
if
urls
is
None
:
return
new_data
=
Data
(
urls
,
self
.
running_data
.
metadata
,
self
.
_in_memory
)
if
self
.
transformation
:
transformation
=
[
apply_2D_ROI
(
axis
,
origin
,
size
,
center
)
for
axis
in
self
.
transformation
]
if
indices
is
None
:
shape
=
list
(
self
.
data
.
shape
)[:
-
2
]
shape
.
append
(
new_data
.
shape
[
-
2
])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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