Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
5740cb3e
Commit
5740cb3e
authored
Sep 20, 2021
by
Yuanpeng Zhang
Committed by
Peterson, Peter
Sep 21, 2021
Browse files
deal with environment being empty
parent
ec3e8984
Changes
1
Show whitespace changes
Inline
Side-by-side
Framework/PythonInterface/plugins/algorithms/SetSampleFromLogs.py
View file @
5740cb3e
...
@@ -166,18 +166,17 @@ class SetSampleFromLogs(DistributedDataProcessorAlgorithm):
...
@@ -166,18 +166,17 @@ class SetSampleFromLogs(DistributedDataProcessorAlgorithm):
environment
=
self
.
_createEnvironment
(
runObject
,
instrEnum
)
environment
=
self
.
_createEnvironment
(
runObject
,
instrEnum
)
# let SetSample generate errors if anything is wrong
# let SetSample generate errors if anything is wrong
try
:
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
)
except
Exception
as
inst
:
self
.
log
().
warning
(
inst
.
args
[
0
])
SetSample
(
InputWorkspace
=
wksp
,
Material
=
material
,
Geometry
=
geometry
)
# Register algorithm with Mantid.
# Register algorithm with Mantid.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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