Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Whitfield, Ross
wand
Commits
7abf25ba
Commit
7abf25ba
authored
Aug 15, 2018
by
Whitfield, Ross
Browse files
Update autoreduce/reduce_HB2C2.py
parent
304422d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
autoreduce/reduce_HB2C2.py
View file @
7abf25ba
...
...
@@ -22,11 +22,16 @@ with h5py.File(filename, 'r') as f:
if
powder
:
sys
.
path
.
append
(
"/opt/mantidnightly/bin"
)
from
mantid.simpleapi
import
LoadWAND
,
WANDPowderReduction
,
SavePlot1D
from
mantid.simpleapi
import
LoadWAND
,
WANDPowderReduction
,
SavePlot1D
,
LoadNexus
data
=
LoadWAND
(
filename
)
data
=
LoadWAND
(
filename
,
Grouping
=
'4x4'
)
runNumber
=
data
.
getRunNumber
()
cal
=
LoadWAND
(
IPTS
=
7776
,
RunNumbers
=
101567
)
van
=
101567
"""
cal = LoadWAND(IPTS=7776, RunNumbers=van, Grouping='4x4')
SaveNexus(cal, '/HFIR/HB2C/shared/autoreduce/HB2C_{}.nxs'.format(van))
"""
cal
=
LoadNexus
(
'/HFIR/HB2C/shared/autoreduce/HB2C_{}.nxs'
.
format
(
van
))
WANDPowderReduction
(
InputWorkspace
=
data
,
CalibrationWorkspace
=
cal
,
Target
=
'Theta'
,
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment