Skip to content
Snippets Groups Projects

Refactor weak beam widget

Merged payno requested to merge refactor_weak_beam_widget into main
Compare and
5 files
+ 233
183
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 8
7
@@ -15,7 +15,7 @@ import numpy
from silx.gui import qt
from darfix.core.dimension import POSITIONER_METADATA
from darfix.tests.utils import createRandomEDFDataset, createRandomHDF5Dataset
from darfix.gui.weakBeamWidget import WeakBeamWidget
from orangecontrib.darfix.widgets.weakbeam import WeakBeamWidgetOW
from darfix import dtypes
@@ -44,7 +44,7 @@ def exec_(argv=None):
# catch
timer.timeout.connect(lambda: None)
w = WeakBeamWidget()
w = WeakBeamWidgetOW()
# test data
data = numpy.arange(2500).reshape((1, 50, 50))
@@ -65,12 +65,13 @@ def exec_(argv=None):
)
dataset.find_dimensions(POSITIONER_METADATA)
reshaped_dataset = dataset.reshape_data()
w.setDataset(
dtypes.OWDataset(
parent=None,
dataset=reshaped_dataset,
)
ow_dataset = dtypes.OWDataset(
parent=None,
dataset=reshaped_dataset,
)
w.setDataset(ow_dataset)
w.set_default_input("dataset", ow_dataset)
w.show()
qapp.exec_()
Loading