Commit 27ba3190 authored by Julia Garriga Ferrer's avatar Julia Garriga Ferrer
Browse files

[core][process] Add process for zsum

parent 6187a7c6
......@@ -41,6 +41,7 @@ from silx.gui import qt
from darfix.core import utils
from darfix.gui.blindSourceSeparationWidget import Method
from darfix.gui.grainPlotWidget import GrainPlotWidget
from darfix.gui.zSumWidget import ZSumWidget
from darfix.gui.rsmWidget import PixelSize
_input_desc = namedtuple("_input_desc", ["name", "type", "handler", "doc"])
......@@ -292,3 +293,21 @@ class _Transformation:
def set_properties(self, properties):
self._properties = properties
class _ZSum:
inputs = [_input_desc(name='dataset', type=tuple, handler='process',
doc='dataset to process'), ]
outputs = [
_output_desc(name='dataset', type=tuple, doc='dataset to process'), ]
def process(self, dataset):
app = qt.QApplication([])
widget = ZSumWidget()
if dataset:
return dataset
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