Changeset 13021


Ignore:
Timestamp:
03/09/12 09:04:38 (13 years ago)
Author:
lusterma
Message:
added callback function
File:
1 edited

Legend:

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

    r13014 r13021  
    2020                 single_pattern=np.array( [-0.5, 1.0, -0.5]) ,
    2121                 double_pattern=np.array([-1., 1., 1., -1.]),
     22                 user_action=lambda candidates, singles, doubles, data, ind: None,
    2223                 debug = False):
    2324        """ initialize spike filter
     
    3233       
    3334        self.remove_signal = fir.RemoveSignal()
     35
     36        self.user_action = user_action
    3437        self.debug = debug
    3538
     
    6770            print 'singles: ', singles
    6871            print 'doubles: ', doubles
     72
     73        self.user_action(cc, singles, doubles, data, a)
    6974
    7075        data = self.remove_single_spikes(singles, data)
Note: See TracChangeset for help on using the changeset viewer.