Ejemplo n.º 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
Ejemplo n.º 2
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
Ejemplo n.º 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()
Ejemplo n.º 4
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()