Commit e131618d authored by Yuanpeng Zhang's avatar Yuanpeng Zhang
Browse files

update absorption utils

parent a02fafb6
......@@ -538,6 +538,14 @@ def create_absorption_input( # noqa: C901
# Make sure one is set before calling SetSample
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
Markdown is supported
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