Skip to content
GitLab
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
27ba3190
Commit
27ba3190
authored
Jul 20, 2021
by
Julia Garriga Ferrer
Browse files
[core][process] Add process for zsum
parent
6187a7c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
darfix/core/process.py
View file @
27ba3190
...
...
@@ -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
:
widget
.
setDataset
(
*
dataset
)
widget
.
setAttribute
(
qt
.
Qt
.
WA_DeleteOnClose
)
widget
.
show
()
app
.
exec_
()
return
dataset
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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