Commit 7abf25ba authored by Whitfield, Ross's avatar Whitfield, Ross
Browse files

Update autoreduce/reduce_HB2C2.py

parent 304422d4
......@@ -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',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment