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

Update autoreduce/

parent 304422d4
...@@ -22,11 +22,16 @@ with h5py.File(filename, 'r') as f: ...@@ -22,11 +22,16 @@ with h5py.File(filename, 'r') as f:
if powder: if powder:
sys.path.append("/opt/mantidnightly/bin") 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() 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, WANDPowderReduction(InputWorkspace=data,
CalibrationWorkspace=cal, CalibrationWorkspace=cal,
Target='Theta', 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