ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change
on this file since 72538fc was
aab4e15,
checked in by Jae Cho <jhjcho@…>, 13 years ago
|
rename dataloader
|
-
Property mode set to
100644
|
File size:
918 bytes
|
Rev | Line | |
---|
[b99ac227] | 1 | from DataLoader.loader import Loader |
---|
| 2 | from DataLoader.readers.IgorReader import Reader as igor_reader |
---|
| 3 | from DataLoader.readers.abs_reader import Reader as abs_reader |
---|
| 4 | |
---|
| 5 | |
---|
| 6 | def 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 | |
---|
| 12 | def 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 | |
---|
| 20 | def single_abs(): |
---|
| 21 | out1 = abs_reader().read("jan08002.ABS") |
---|
| 22 | |
---|
| 23 | def single_igor(): |
---|
| 24 | out1 = igor_reader().read("MAR07232_rest.ASC") |
---|
| 25 | |
---|
| 26 | if __name__ == "__main__": |
---|
| 27 | #consecutive_loader() |
---|
| 28 | #consecutive_reader() |
---|
| 29 | single_igor() |
---|
| 30 | single_abs() |
---|
[daa56d0] | 31 | print "Test passed" |
---|
Note: See
TracBrowser
for help on using the repository browser.