Changeset 8bd8ea4 in sasview for DataLoader/readers
- Timestamp:
- Jul 28, 2008 2:27:31 PM (17 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:
- 9855699
- Parents:
- ea5551f
- Location:
- DataLoader/readers
- Files:
-
- 1 added
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
DataLoader/readers/abs_reader.py
rd8a5f12 r8bd8ea4 18 18 """ 19 19 ## List of allowed extensions 20 ext=['.abs' ]20 ext=['.abs', '.ABS'] 21 21 22 22 def read(self, path): … … 131 131 if not len(y) == len(dy): 132 132 raise ValueError, "abs_reader: y and dy have different length" 133 134 # If the data length is zero, consider this as 135 # though we were not able to read the file. 136 if len(x)==0: 137 raise ValueError, "ascii_reader: could not load file" 133 138 134 139 output.x = x … … 136 141 output.dy = dy 137 142 output.xaxis("\\rm{Q}", 'A^{-1}') 138 output.yaxis("\\rm{I(Q)} 143 output.yaxis("\\rm{I(Q)}","cm^{-1}") 139 144 140 145 return output -
DataLoader/readers/tiff_reader.py
r68f6ae2 r8bd8ea4 1 1 2 import Image3 2 import math,logging 4 3 … … 14 13 15 14 def read(self, filename=None): 15 import Image 16 16 print "in tiff" 17 17 """
Note: See TracChangeset
for help on using the changeset viewer.