Changeset 13383 for fact/tools/pyscripts
- Timestamp:
- 04/18/12 20:36:18 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/pyscripts/pyfact/pyfact.py
r13382 r13383 211 211 if self.return_dict: 212 212 return self.__dict__ 213 else:213 else: 214 214 return self.acal_data, self.start_cells, self.trigger_type.value 215 215 … … 249 249 roi = self.nroi 250 250 # rotate the pixel baseline mean to the Data startCell 251 blm_pixel = blm[pixel,sc:sc+roi]251 #blm_pixel = blm[pixel,sc:sc+roi] 252 252 # rotate the pixel gain mean to the Data startCell 253 gm_pixel = gm[pixel,sc:sc+roi]253 #gm_pixel = gm[pixel,sc:sc+roi] 254 254 # the 'trigger offset mean' does not need to be rolled 255 255 # on the contrary, it seems there is an offset in the DRS data, 256 256 # which is related to its distance to the startCell, not to its 257 257 # distance to the beginning of the physical pipeline in the DRS chip 258 tom_pixel = tom[pixel,0:roi]258 #tom_pixel = tom[pixel,0:roi] 259 259 260 acal_data[pixel,:] -= blm_pixel 261 acal_data[pixel,:] -= tom_pixel 262 acal_data[pixel,:] /= gm_pixel 260 #acal_data[pixel,:] -= blm_pixel 261 #acal_data[pixel,:] -= tom_pixel 262 #acal_data[pixel,:] /= gm_pixel 263 acal_data[pixel,:] -= blm[pixel,sc:sc+roi] 264 acal_data[pixel,:] -= tom[pixel,0:roi] 265 acal_data[pixel,:] /= gm[pixel,sc:sc+roi] 263 266 264 267 self.acal_data = acal_data * 1907.35 … … 271 274 #t = np.roll( gm[0,:], -self.start_cells[0] ) 272 275 #print 'gm _pyfact: ', t[0:10] 273 self.user_action_calib( self.acal_data,274 np.reshape(self.data, (self.npix, self.nroi) ), blm, tom, gm, self.start_cells, self.nroi)276 #self.user_action_calib( self.acal_data, 277 # np.reshape(self.data, (self.npix, self.nroi) ), blm, tom, gm, self.start_cells, self.nroi) 275 278 276 279
Note:
See TracChangeset
for help on using the changeset viewer.