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

[core][process] Add _GrainPlot class

parent 748a2c3e
......@@ -31,13 +31,16 @@ Orange workflow and later be converted to a script without the GUI part needed.
__authors__ = ["J. Garriga"]
__license__ = "MIT"
__date__ = "23/11/2020"
__date__ = "16/07/2021"
import numpy
from collections import namedtuple
from silx.gui import qt
from darfix.core import utils
from darfix.gui.blindSourceSeparationWidget import Method
from darfix.gui.grainPlotWidget import GrainPlotWidget
_input_desc = namedtuple("_input_desc", ["name", "type", "handler", "doc"])
......@@ -241,3 +244,21 @@ class _RockingCurves:
def set_properties(self, properties):
self._properties = properties
class _GrainPlot:
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 = GrainPlotWidget()
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