Changeset 16d8e5f in sasview for DataLoader/plugins
- Timestamp:
- Jul 10, 2008 4:41:18 PM (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:
- 83ca047
- Parents:
- 93f0a586
- Location:
- DataLoader/plugins
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
DataLoader/plugins/TXT2_Reader.py
r8d6440f r16d8e5f 3 3 import string,numpy 4 4 import logging 5 class ReaderInfo: 6 """ 7 This class is a container of data. It stores values read from files 8 """ 9 ## Wavelength [A] 10 wavelength = 0.0 11 ## Number of x bins 12 xbins = 128 13 ## Number of y bins 14 ybins = 128 15 ## Beam center X [pixel number] 16 center_x = 65 17 ## Beam center Y [pixel number] 18 center_y = 65 19 ## Distance from sample to detector [m] 20 distance = 11.0 21 ## Qx values [A-1] 22 x_vals = [] 23 ## Qy xalues [A-1] 24 y_vals = [] 25 ## Qx min 26 xmin = 0.0 27 ## Qx max 28 xmax = 1.0 29 ## Qy min 30 ymin = 0.0 31 ## Qy max 32 ymax = 1.0 33 ## Image 34 image = None 35 ## Pixel size 36 pixel_size = 0.5 37 ## x coordinate 38 x=[] 39 ##y coordinate 40 y=[] 41 ##dx error on y 42 dx=None 43 ## dy error on y 44 dy=None 45 ## Error on each pixel 46 error = None 47 ##type of data 48 type="" 49 ##z 50 Z=None 51 5 52 class Reader: 6 53 """ … … 68 115 #return msg 69 116 logging.info("TXT2_Reader reading %s\n" %path) 70 return self.x,self.y,self.dy 117 output = ReaderInfo() 118 output.x = self.x 119 output.y = self.y 120 output.type = "1D" 121 122 return output 71 123 return None 72 124 -
DataLoader/plugins/TXT3_Reader.py
r8d6440f r16d8e5f 3 3 import string,numpy 4 4 import logging 5 class ReaderInfo: 6 """ 7 This class is a container of data. It stores values read from files 8 """ 9 ## Wavelength [A] 10 wavelength = 0.0 11 ## Number of x bins 12 xbins = 128 13 ## Number of y bins 14 ybins = 128 15 ## Beam center X [pixel number] 16 center_x = 65 17 ## Beam center Y [pixel number] 18 center_y = 65 19 ## Distance from sample to detector [m] 20 distance = 11.0 21 ## Qx values [A-1] 22 x_vals = [] 23 ## Qy xalues [A-1] 24 y_vals = [] 25 ## Qx min 26 xmin = 0.0 27 ## Qx max 28 xmax = 1.0 29 ## Qy min 30 ymin = 0.0 31 ## Qy max 32 ymax = 1.0 33 ## Image 34 image = None 35 ## Pixel size 36 pixel_size = 0.5 37 ## x coordinate 38 x=[] 39 ##y coordinate 40 y=[] 41 ##dx error on y 42 dx=None 43 ## dy error on y 44 dy=None 45 ## Error on each pixel 46 error = None 47 ##type of data 48 type="" 49 ##z 50 Z=None 5 51 class Reader: 6 52 """ … … 67 113 raise ValueError, "TXT3_Reader can't read %s"%path 68 114 else: 69 #msg="txtReader Reading:\n"+"this x :"+ str(self.x) +"\n"+"this y:"+str(self.y)+"\n"+"this dy :"+str(self.dy)+"\n" 70 #return msg 115 71 116 logging.info ("TXT3_Reader reading %s \n" %(path)) 72 return self.x,self.y,self.dy 117 118 output = ReaderInfo() 119 output.x = self.x 120 output.y = self.y 121 output.dy = self.dy 122 output.type = "1D" 123 124 return output 73 125 74 126 return None -
DataLoader/plugins/tiff_reader.py
r3dd7cce r16d8e5f 4 4 class ReaderInfo: 5 5 """ 6 This class is a container of data. It stores values read from files 6 7 """ 7 8 ## Wavelength [A] … … 33 34 ## Pixel size 34 35 pixel_size = 0.5 36 ## x coordinate 37 x=[] 38 ##y coordinate 39 y=[] 40 ##dx error on y 41 dx=None 42 ## dy error on y 43 dy=None 35 44 ## Error on each pixel 36 45 error = None 37 46 ##type of data 47 type="" 48 ##z 49 Z=None 50 38 51 class Reader: 39 52 """ … … 144 157 output.image = Z 145 158 output.pixel_size = pixel 146 159 output.type ="2D" 160 147 161 return output 148 162
Note: See TracChangeset
for help on using the changeset viewer.