Exemplo n.º 1
0
    def __init__(self, x, t, amp=None, dtype=np.float64, **kw):
        kw.setdefault('type', 'Current')
        kw.setdefault('units', 'A')

        AmpSignal.__init__(self, x, t, amp, dtype, **kw)

        self.V = kw.get('V', None)
        self.C = kw.get('C', None)
Exemplo n.º 2
0
    def __init__(self, x, t, amp=None, dtype=np.float64, **kw):
        kw.setdefault('type', 'Voltage')
        kw.setdefault('units', 'V')

        self.dt = kw.pop('dt', 0.1)
        self.min_ptp = kw.pop('min_ptp', 50)

        AmpSignal.__init__(self, x, t, amp, dtype, **kw)
Exemplo n.º 3
0
    def __init__(self, x, t, amp=None, dtype=np.float64, **kw):
        kw.setdefault('type', 'Position')
        kw.setdefault('units', 'm')

        AmpSignal.__init__(self, x, t, amp, dtype, **kw)

        self.baseline_slice = kw.get('baseline_slice', slice(None, 1000))
        self.lvl_fact = kw.get('lvl_fact', 0.1)
        self.dist_threshold = kw.get('dist_threshold', 1000)
Exemplo n.º 4
0
 def __init__(self, x, t, *args, **kw):
     kw.setdefault('name', 'psi_n')
     kw.setdefault('type', 'Normalized flux')
     kw.setdefault('label', 'Normalized flux')
     kw.setdefault('units', '')
     AmpSignal.__init__(self, x, t, *args, **kw)