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

deal with environment being empty properly

parent 5740cb3e
......@@ -167,16 +167,16 @@ class SetSampleFromLogs(DistributedDataProcessorAlgorithm):
# let SetSample generate errors if anything is wrong
if self.getProperty("Environment").value.values():
SetSample(InputWorkspace=wksp,
Material=material,
Geometry=geometry)
else:
SetSample(InputWorkspace=wksp,
Material=material,
Geometry=geometry,
Environment=environment,
ContainerGeometry=geometryContainer,
ContainerMaterial=materialContainer)
else:
SetSample(InputWorkspace=wksp,
Material=material,
Geometry=geometry)
# Register algorithm with Mantid.
......
Supports Markdown
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