Ticket #10598: sqw_test.py

File sqw_test.py, 840 bytes (added by Dan Nixon, 6 years ago)
Line 
1# This file was created with the old SofQW algorithm
2Load(Filename='irs53664_graphite002_sqw.nxs', OutputWorkspace='irs53664_graphite002_sqw')
3# Do something to show how the incorrect detector table breaks analysis
4ConvertUnits(InputWorkspace='irs53664_graphite002_sqw', OutputWorkspace='original_sqw_conversion', Target='Wavelength', EMode='Indirect', EFixed=1.845)
5
6# This is the file the original Sqw was created from
7Load(Filename='irs53664_graphite002_red.nxs', OutputWorkspace='irs53664_graphite002_red')
8# Recreate the Sqw with the fixed algorithm
9SofQW(InputWorkspace='irs53664_graphite002_red', OutputWorkspace='new_sqw', QAxisBinning='0.4,0.1,1.8', EMode='Indirect', EFixed=1.845)
10# Do the same check
11ConvertUnits(InputWorkspace='new_sqw', OutputWorkspace='new_sqw_conversion', Target='Wavelength', EMode='Indirect', EFixed=1.845)