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
ee9daef4
Commit
ee9daef4
authored
Jul 06, 2021
by
Julia Garriga Ferrer
Browse files
[core][dataset] Fix typo
parent
9141451d
Changes
1
Hide whitespace changes
Inline
Side-by-side
darfix/core/dataset.py
View file @
ee9daef4
...
...
@@ -797,7 +797,7 @@ class Dataset():
if
not
self
.
operations_state
[
Operation
.
SHIFT
]:
return
filename
=
_dir
+
"/data"
+
str
(
i
).
zfill
(
4
)
+
".npy"
if
shift
[:,
i
]
>
1
:
if
shift
[:,
i
]
.
all
()
>
1
:
shift_approach
=
"linear"
img
=
apply_shift
(
data
[
i
],
shift
[:,
i
],
shift_approach
)
numpy
.
save
(
filename
,
img
)
...
...
@@ -830,7 +830,7 @@ class Dataset():
if
not
self
.
operations_state
[
Operation
.
SHIFT
]:
return
filename
=
_dir
+
"/data"
+
str
(
i
).
zfill
(
4
)
+
".npy"
if
shift
[:,
i
]
>
1
:
if
shift
[:,
i
]
.
all
()
>
1
:
shift_approach
=
"linear"
img
=
apply_shift
(
data
[
i
],
shift
[:,
i
],
shift_approach
)
numpy
.
save
(
filename
,
img
)
...
...
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