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
e131618d
Commit
e131618d
authored
Sep 18, 2021
by
Yuanpeng Zhang
Browse files
update absorption utils
parent
a02fafb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Framework/PythonInterface/mantid/utils/absorptioncorrutils.py
View file @
e131618d
...
@@ -538,6 +538,14 @@ def create_absorption_input( # noqa: C901
...
@@ -538,6 +538,14 @@ def create_absorption_input( # noqa: C901
# Make sure one is set before calling SetSample
# Make sure one is set before calling SetSample
if
material
or
geometry
or
environment
:
if
material
or
geometry
or
environment
:
mantid
.
simpleapi
.
SetSampleFromLogs
(
InputWorkspace
=
absName
,
Material
=
material
,
Geometry
=
geometry
,
Environment
=
environment
)
if
environment
:
mantid
.
simpleapi
.
SetSampleFromLogs
(
InputWorkspace
=
absName
,
Material
=
material
,
Geometry
=
geometry
,
Environment
=
environment
)
else
:
mantid
.
simpleapi
.
SetSample
(
InputWorkspace
=
absName
,
Material
=
material
,
Geometry
=
geometry
)
return
absName
return
absName
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