Exemplo n.º 1
0
def test_detect_intrac_spikes():
    from quickspikes.spikes import detector

    det = detector(0, 100)
    assert_sequence_equal(det.send(b_recording), b_times)

    det = detector(-20, 100)
    assert_sequence_equal(det.send(b_recording), b_times)
Exemplo n.º 2
0
def test_detect_intrac_spikes():
    from quickspikes.spikes import detector

    det = detector(0, 100)
    assert_sequence_equal(det.send(b_recording), b_times)

    det = detector(-20, 100)
    assert_sequence_equal(det.send(b_recording), b_times)
Exemplo n.º 3
0
    def test_detect_intrac_spikes(self):
        from quickspikes.spikes import detector

        det = detector(0, 100)
        self.assertSequenceEqual(det.send(b_recording), b_times)

        det = detector(-20, 100)
        self.assertSequenceEqual(det.send(b_recording), b_times)
Exemplo n.º 4
0
def test_detect_extrac_spikes():
    from quickspikes.spikes import detector

    det = detector(2000, 40)
    assert_sequence_equal(det.send(a_recording), [t + t_peak for t in a_times])
    assert_sequence_equal(det.send(-a_recording),
                          [t + t_trough for t in a_times])
    assert_sequence_equal(det(a_recording), [t + t_peak for t in a_times])
Exemplo n.º 5
0
def test_detect_extrac_spikes():
    from quickspikes.spikes import detector

    det = detector(2000, 40)
    assert_sequence_equal(det.send(a_recording), [t + t_peak for t in a_times])
    assert_sequence_equal(det.send(-a_recording), [t + t_trough for t in a_times])