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
e4d4069c
Commit
e4d4069c
authored
9 years ago
by
Elliot Oram
Browse files
Options
Downloads
Patches
Plain Diff
Use full lower case name for file naming in IDR et
Refs #13975
parent
84cf41b0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/Inelastic/IndirectReductionCommon.py
+3
-9
3 additions, 9 deletions
scripts/Inelastic/IndirectReductionCommon.py
with
3 additions
and
9 deletions
scripts/Inelastic/IndirectReductionCommon.py
+
3
−
9
View file @
e4d4069c
...
...
@@ -565,13 +565,7 @@ def rename_reduction(workspace_name, multiple_files):
logger
.
information
(
'
Run number for workspace %s is %s
'
%
(
workspace_name
,
run_number
))
inst_name
=
instrument
.
getName
()
for
facility
in
config
.
getFacilities
():
try
:
short_inst_name
=
facility
.
instrument
(
inst_name
).
shortName
()
break
except
_
:
pass
logger
.
information
(
'
Short name for instrument %s is %s
'
%
(
inst_name
,
short_inst_name
))
inst_name
=
inst_name
.
lower
()
# Get run title
if
is_multi_frame
:
...
...
@@ -591,12 +585,12 @@ def rename_reduction(workspace_name, multiple_files):
elif
convention
==
'
RunTitle
'
:
valid
=
"
-_.() %s%s
"
%
(
string
.
ascii_letters
,
string
.
digits
)
formatted_title
=
''
.
join
([
c
for
c
in
run_title
if
c
in
valid
])
new_name
=
'
%s%s%s-%s
'
%
(
short_
inst_name
.
lower
(),
run_number
,
multi_run_marker
,
formatted_title
)
new_name
=
'
%s%s%s-%s
'
%
(
inst_name
.
lower
(),
run_number
,
multi_run_marker
,
formatted_title
)
elif
convention
==
'
AnalyserReflection
'
:
analyser
=
instrument
.
getStringParameter
(
'
analyser
'
)[
0
]
reflection
=
instrument
.
getStringParameter
(
'
reflection
'
)[
0
]
new_name
=
'
%s%s%s_%s%s_red
'
%
(
short_
inst_name
.
upp
er
(),
run_number
,
multi_run_marker
,
new_name
=
'
%s%s%s_%s%s_red
'
%
(
inst_name
.
low
er
(),
run_number
,
multi_run_marker
,
analyser
,
reflection
)
else
:
...
...
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