1 | config['default.facility']="SNS" |
---|
2 | |
---|
3 | ws_name = "ARCS_sim_event_spe" |
---|
4 | ei_guess = 1000.0 |
---|
5 | |
---|
6 | ws = DgsReduction( |
---|
7 | SampleInputFile="ARCS_sim_event.nxs", |
---|
8 | OutputWorkspace=ws_name, |
---|
9 | IncidentEnergyGuess=ei_guess, |
---|
10 | UseIncidentEnergyGuess=True, |
---|
11 | IncidentBeamNormalisation="None", |
---|
12 | ) |
---|
13 | |
---|
14 | sws = SumSpectra(ws[0], OutputWorkspace=ws_name+"_s") |
---|
15 | plt1 = plotSpectrum(sws, 0) |
---|
16 | |
---|
17 | sqw_ws = SofQW(ws[0], OutputWorkspace=ws_name+"_sqw", QAxisBinning="13,0.05,15", |
---|
18 | EMode="Direct", EFixed=ei_guess) |
---|
19 | plt2 = plotSlice(sqw_ws) |
---|