Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
3eb78897
Unverified
Commit
3eb78897
authored
6 years ago
by
Pete Peterson
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #22978 from samueljackson92/22974-fix-maud-warning-on-start
Fix MAUD warning on Mantid start
parents
4e5e9cac
6b4ff1a8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Framework/PythonInterface/plugins/algorithms/SaveGEMMAUDParamFile.py
+6
-3
6 additions, 3 deletions
...ythonInterface/plugins/algorithms/SaveGEMMAUDParamFile.py
with
6 additions
and
3 deletions
Framework/PythonInterface/plugins/algorithms/SaveGEMMAUDParamFile.py
+
6
−
3
View file @
3eb78897
...
...
@@ -85,7 +85,12 @@ class SaveGEMMAUDParamFile(PythonAlgorithm):
def
create_empty_param_list
(
default_value
=
"
0
"
):
return
"
\n
"
.
join
(
default_value
for
_
in
range
(
num_banks
))
with
open
(
self
.
getProperty
(
self
.
PROP_TEMPLATE_FILE
).
value
)
as
template_file
:
template_file_path
=
self
.
getProperty
(
self
.
PROP_TEMPLATE_FILE
).
value
if
len
(
template_file_path
)
==
0
:
logger
.
error
(
"
Could not find default diffraction directory for .maud template file:
"
"
you
'
ll have to find it yourself
"
)
with
open
(
template_file_path
)
as
template_file
:
template
=
template_file
.
read
()
output_params
[
"
function_types
"
]
=
create_empty_param_list
(
"
1
"
)
...
...
@@ -136,8 +141,6 @@ class SaveGEMMAUDParamFile(PythonAlgorithm):
if
os
.
path
.
exists
(
path_to_test
):
return
path_to_test
logger
.
warning
(
"
Could not find default diffraction directory for .maud template file:
"
"
you
'
ll have to find it yourself
"
)
return
""
def
_format_param_list
(
self
,
param_list
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment