Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
d50df3e1
Commit
d50df3e1
authored
Dec 17, 2020
by
Gagik Vardanyan
Browse files
clean the cut workspace after integration
parent
36785a9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/SANSILLIntegration.py
View file @
d50df3e1
...
...
@@ -172,7 +172,8 @@ class SANSILLIntegration(PythonAlgorithm):
self
.
_resolution
=
self
.
getPropertyValue
(
'CalculateResolution'
)
self
.
_output_ws
=
self
.
getPropertyValue
(
'OutputWorkspace'
)
self
.
_lambda_range
=
self
.
getProperty
(
'WavelengthRange'
).
value
if
len
(
mtd
[
self
.
_input_ws
].
readY
(
0
))
>
1
:
# TOF D33
is_tof
=
mtd
[
self
.
_input_ws
].
getRun
().
getLogData
(
'tof_mode'
).
value
==
'TOF'
# D33 only
if
is_tof
:
cut_input_ws
=
self
.
_input_ws
+
'_cut'
CropWorkspaceRagged
(
InputWorkspace
=
self
.
_input_ws
,
OutputWorkspace
=
cut_input_ws
,
...
...
@@ -202,6 +203,8 @@ class SANSILLIntegration(PythonAlgorithm):
panel_outputs
.
append
(
out_ws
)
GroupWorkspaces
(
InputWorkspaces
=
panel_outputs
,
OutputWorkspace
=
panels_out_ws
)
self
.
setProperty
(
'PanelOutputWorkspaces'
,
mtd
[
panels_out_ws
])
if
is_tof
:
DeleteWorkspace
(
self
.
_input_ws
)
def
_integrate
(
self
,
in_ws
,
out_ws
,
panel
=
None
):
if
self
.
_output_type
==
'I(Q)'
or
self
.
_output_type
==
'I(Phi,Q)'
:
...
...
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