Ticket #6090: sim_test.py

File sim_test.py, 607 bytes (added by Michael Reuter, 8 years ago)

Reduction script for simulation file

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