Commit ade0868d authored by Yuanpeng Zhang's avatar Yuanpeng Zhang Committed by Peterson, Peter
Browse files

update absorption utils

parent 67c730a2
......@@ -538,6 +538,14 @@ def create_absorption_input(
# 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