Ignore:
Timestamp:
03/19/12 11:34:36 (13 years ago)
Author:
neise
Message:
included tab checking, and substituded all tabs by spaces
File:
1 edited

Legend:

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

    r13141 r13142  
    1 #!/usr/bin/python
     1#!/usr/bin/python -tt
    22#
    33# Werner Lustermann
     
    2828
    2929    def __init__(self, data_file_name, calib_file_name,
    30                 user_action_calib=lambda acal_data, data, blm, tom, gm, scells, nroi: None,
    31                 baseline_file_name=''):
     30                user_action_calib=lambda acal_data, data, blm, tom, gm, scells, nroi: None,
     31                baseline_file_name=''):
    3232        """ initialize object
    3333
     
    4545        self.calib_file_name = calib_file_name
    4646        self.baseline_file_name = baseline_file_name
    47            
    48         self.user_action_calib = user_action_calib
     47
     48        self.user_action_calib = user_action_calib
    4949       
    5050        # baseline correction: True / False
     
    136136
    137137        #print 'nevents = ', self.nevents, 'event_id = ', self.event_id.value
    138        
     138
    139139        return self.acal_data, self.start_cells, self.trigger_type.value
    140140
     
    172172           
    173173        self.acal_data = acal_data * 1907.35
    174        
    175         #print 'blm _pyfact', blm[0,0:20]
    176         #t = np.roll( blm[0,:], -self.start_cells[0] )
    177         #print 'blm _pyfact', t[0:20]
    178         #print 'start_pyfact: ', self.start_cells[0]
    179         #print 'acal _pyfact: ', self.acal_data[0,0:10]
    180         #t = np.roll( gm[0,:], -self.start_cells[0] )
    181         #print 'gm _pyfact: ', t[0:10]
    182         self.user_action_calib( self.acal_data,
    183                 np.reshape(self.data, (self.npix, self.nroi) ), blm, tom, gm, self.start_cells, self.nroi)
     174       
     175        #print 'blm _pyfact', blm[0,0:20]
     176        #t = np.roll( blm[0,:], -self.start_cells[0] )
     177        #print 'blm _pyfact', t[0:20]
     178        #print 'start_pyfact: ', self.start_cells[0]
     179        #print 'acal _pyfact: ', self.acal_data[0,0:10]
     180        #t = np.roll( gm[0,:], -self.start_cells[0] )
     181        #print 'gm _pyfact: ', t[0:10]
     182        self.user_action_calib( self.acal_data,
     183            np.reshape(self.data, (self.npix, self.nroi) ), blm, tom, gm, self.start_cells, self.nroi)
    184184
    185185       
Note: See TracChangeset for help on using the changeset viewer.