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
Whitfield, Ross
wand
Commits
041a84a3
Commit
041a84a3
authored
Sep 24, 2018
by
Whitfield, Ross
Browse files
Update save_multiple_powder.py
parent
fd5f16a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
save_multiple_powder.py
0 → 100644
View file @
041a84a3
grp
=
mtd
[
'group_name'
]
# Save by run number
for
ws
in
grp
:
SaveFocusedXYE
(
ws
,
SplitFiles
=
False
,
IncludeHeader
=
False
,
Filename
=
'{}.xye'
.
format
(
ws
.
getTitle
()))
# Save by title
for
ws
in
grp
:
SaveFocusedXYE
(
ws
,
SplitFiles
=
False
,
IncludeHeader
=
False
,
Filename
=
'{}.xye'
.
format
(
ws
.
getRunNumber
()))
# Save by run number and title
for
ws
in
grp
:
SaveFocusedXYE
(
ws
,
SplitFiles
=
False
,
IncludeHeader
=
False
,
Filename
=
'{}-{}.xye'
.
format
(
ws
.
getRunNumber
(),
ws
.
getTitle
()))
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