Changeset c125e0c in sasview for DataLoader/readers/IgorReader.py
- Timestamp:
- Jul 2, 2008 10:39:39 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:
- 9e85792
- Parents:
- 70e9610
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
DataLoader/readers/IgorReader.py
rbb03739 rc125e0c 72 72 wavelength = float(line_toks[1]) 73 73 except: 74 raise ValueError," DataReader: can't read this file, missing wavelength"74 raise ValueError,"IgorReader: can't read this file, missing wavelength" 75 75 # Distance in meters 76 76 try: 77 77 distance = float(line_toks[3]) 78 78 except: 79 raise ValueError," DataReader: can't read this file, missing distance"79 raise ValueError,"IgorReader: can't read this file, missing distance" 80 80 81 81 if line.count("LAMBDA")>0: … … 103 103 or center_x == None \ 104 104 or center_y == None: 105 raise ValueError, " Missing information in data file"105 raise ValueError, "IgorReader:Missing information in data file" 106 106 107 107 if dataStarted == True: … … 165 165 self.center_x = center_x 166 166 self.center_y = center_y 167 167 print "IgorReader reading %s"%self.file 168 168 return Z, xmin-xstep/2.0, xmax+xstep/2.0, ymin-ystep/2.0, ymax+ystep/2.0 169 169
Note: See TracChangeset
for help on using the changeset viewer.