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
c83d3b0d
Commit
c83d3b0d
authored
Aug 17, 2021
by
Julia Garriga Ferrer
Browse files
[examples][shift] Use two dimension dataset
parent
e43da1f4
Pipeline
#52825
passed with stage
in 2 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
examples/shift_correction.py
View file @
c83d3b0d
...
...
@@ -36,7 +36,8 @@ import sys
import
numpy
from
silx.gui
import
qt
from
darfix.test.utils
import
createDataset
from
darfix.test.utils
import
createRandomDataset
from
darfix.core.dimension
import
POSITIONER_METADATA
from
darfix.gui.shiftCorrectionWidget
import
ShiftCorrectionWidget
...
...
@@ -61,8 +62,9 @@ def exec_():
data
=
numpy
.
repeat
(
data
,
10
,
axis
=
0
)
dataset
=
createDataset
(
data
=
data
)
w
.
setDataset
(
dataset
)
dataset
=
createRandomDataset
((
100
,
100
),
nb_data_files
=
10
,
header
=
True
)
dataset
.
find_dimensions
(
POSITIONER_METADATA
)
w
.
setDataset
(
dataset
.
reshape_data
())
w
.
show
()
qapp
.
exec_
()
...
...
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