예제 #1
0
    def get_peak(self):
        """ 
        calculate peak measured from threshold in the current trace, 
        (see Stuart et al (1997)
        """

        stf.set_peak_mean(1) # a single point for the peak value
        stf.set_peak_direction("up") # peak direction up

        self.update()
        
        peak = stf.get_peak()-stf.get_threshold_value()  
        return peak
예제 #2
0
파일: spells.py 프로젝트: yueqiw/stimfit
    def get_peak(self):
        """ 
        calculate peak measured from threshold in the current trace, 
        (see Stuart et al (1997)
        """

        stf.set_peak_mean(1)  # a single point for the peak value
        stf.set_peak_direction("up")  # peak direction up

        self.update()

        peak = stf.get_peak() - stf.get_threshold_value()
        return peak
예제 #3
0
 def get_threshold_value(self):
     """ return the value (in y-units) at the threshold """
     self.update() # stf.get_threshold_value does not update
     return stf.get_threshold_value()
예제 #4
0
파일: spells.py 프로젝트: yueqiw/stimfit
 def get_threshold_value(self):
     """ return the value (in y-units) at the threshold """
     self.update()  # stf.get_threshold_value does not update
     return stf.get_threshold_value()