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

deal with environment being empty properly

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