Commit c83d3b0d authored by Julia Garriga Ferrer's avatar Julia Garriga Ferrer
Browse files

[examples][shift] Use two dimension dataset

parent e43da1f4
Pipeline #52825 passed with stage
in 2 minutes and 10 seconds
......@@ -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_()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment