Changeset 13383


Ignore:
Timestamp:
04/18/12 20:36:18 (13 years ago)
Author:
neise
Message:
just a test
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/pyscripts/pyfact/pyfact.py

    r13382 r13383  
    211211        if self.return_dict:
    212212            return self.__dict__
    213         else:
     213            else:
    214214            return self.acal_data, self.start_cells, self.trigger_type.value
    215215
     
    249249            roi = self.nroi
    250250            # 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]
    252252            # 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]
    254254            # the 'trigger offset mean' does not need to be rolled
    255255            # on the contrary, it seems there is an offset in the DRS data,
    256256            # which is related to its distance to the startCell, not to its
    257257            # 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]
    259259           
    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]
    263266           
    264267        self.acal_data = acal_data * 1907.35
     
    271274        #t = np.roll( gm[0,:], -self.start_cells[0] )
    272275        #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)
    275278
    276279       
Note: See TracChangeset for help on using the changeset viewer.