Ticket #8977: check8977_real_example.py

File check8977_real_example.py, 494 bytes (added by Gesner Passos, 7 years ago)
Line 
1# add ndxsans2d/user/Masks  and cycle 13_3 to directory manager.
2import ISISCommandInterface as ici
3import math
4MASKFILE = FileFinder.getFullPath('MASKSANS2D_133F_12m_8mm_Hellsing_changer.txt')
5assert(MASKFILE)
6ici.SANS2D()
7ici.MaskFile(MASKFILE)
8ici.TransFit('Polynomial3')
9ici.AssignSample('21012')
10ici.TransmissionSample('21005','21002')
11reduced = ici.WavRangeReduction()
12
13name = '21005_trans_sample_1.5_12.5'
14b = plotSpectrum(name + '_unfitted',0,True)
15plotSpectrum(name, 0, True, window=b)