Changeset 5f0f3d2 in sasview for DataLoader/test
- Timestamp:
- Jul 11, 2008 9:10:44 AM (16 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 03a20aa
- Parents:
- 68f6ae2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DataLoader/test/testLoad.py
rcc37c818 r5f0f3d2 11 11 12 12 13 #logger.info('oops I did it again')14 13 15 14 import unittest … … 53 52 self.L=Loader() 54 53 55 #creating readers 56 read1=TXT2_Reader.Reader() 57 read2=TXT3_Reader.Reader() 58 read3=IgorReader.Reader() 59 read4=danse_reader.Reader() 60 read5=tiff_reader.Reader() 61 #for each readers set an extensions inside the loader 62 63 #TODO: should not call __setitem__ from outside 64 # the class. That's not the purpose of __setitem__ 65 self.L.__setitem__("plugins",'.txt',read2) 66 self.L.__setitem__(None,'.txt',read1) 67 self.L.__setitem__(None,'.dat',read1) 68 69 self.L.__setitem__(None,'.dat',read2) 70 self.L.__setitem__(None,'.ASC',read3) 71 self.L.__setitem__(None,'.sans',read4) 72 self.L.__setitem__(None,'.tif',read5) 73 self.L.__setitem__(None,'.jpg',read5) 74 self.L.__setitem__(None,'.png',read5) 75 self.L.__setitem__(None,'.jpeg',read5) 76 self.L.__setitem__(None,'.gif',read5) 77 self.L.__setitem__(None,'.bmp',read5) 78 54 79 55 def testLoad0(self): 80 56 """test reading empty file"""
Note: See TracChangeset
for help on using the changeset viewer.