source: sasview/test/sasdataloader/test/sequence_tests.py @ 132db16

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change on this file since 132db16 was 8c9ffde, checked in by krzywon, 9 years ago

Found more folders with the name sans and about 50% done converting
all test files.

  • Property mode set to 100644
File size: 918 bytes
Line 
1from DataLoader.loader import Loader
2from DataLoader.readers.IgorReader import Reader as igor_reader
3from DataLoader.readers.abs_reader import Reader as abs_reader
4
5
6def consecutive_loader():
7    out1 =  Loader().load("jan08002.ABS")
8    out2 = Loader().load("MAR07232_rest.ASC")
9    if len(out2.detector)>1:
10        print "Consecutive reads using Loader failed"
11
12def consecutive_reader():
13    out1 = abs_reader().read("jan08002.ABS")
14    out2 = igor_reader().read("MAR07232_rest.ASC")
15    if len(out2.detector)>1:
16        print "Consecutive reads using Readers failed"
17        print out1
18        print out2
19
20def single_abs():
21    out1 = abs_reader().read("jan08002.ABS")
22   
23def single_igor():
24    out1 = igor_reader().read("MAR07232_rest.ASC")
25
26if __name__ == "__main__": 
27    #consecutive_loader()
28    #consecutive_reader()
29    single_igor()
30    single_abs()
31    print "Test passed"
Note: See TracBrowser for help on using the repository browser.