Ticket #6670: mantid_commands.py

File mantid_commands.py, 903 bytes (added by Jose Borreguero, 7 years ago)
Line 
1LoadEventNexus(Filename='/SNS/VIS/2012_1_16B_SCI/1/1085/NeXus/VIS_1085_event.nxs',OutputWorkspace='ws',BankName='bank4')
2
3#Apply ModeratorTzero to the events
4ModeratorTzero(InputWorkspace='ws',OutputWorkspace='wsx')
5
6#Apply ModeratorTzero to the histograms
7Rebin(InputWorkspace='ws',Params=[0,4,16000],OutputWorkspace='hws',PreserveEvents=0)
8ModeratorTzero(InputWorkspace='hws',OutputWorkspace='hwsx')
9
10#compare original with transformed events  and with transformed histograms
11SumSpectra(InputWorkspace='ws',OutputWorkspace='sum')
12SumSpectra(InputWorkspace='wsx',OutputWorkspace='sumx')
13SumSpectra(InputWorkspace='hwsx',OutputWorkspace='transformed_histograms')
14Rebin(InputWorkspace='sum',Params=[0,4,16000],OutputWorkspace='original')
15Rebin(InputWorkspace='sumx',Params=[0,4,16000],OutputWorkspace='transformed_events')
16plot((mtd['original'],mtd['transformed_events'],mtd['transformed_histograms']),0)