Exemplo n.º 1
0
 def test_ppi_continues(self):
     '''Tests that running ppi with initial indices works as expected.'''
     data = self.data
     s = np.random.get_state()
     p = spy.ppi(data, 4)
     np.random.set_state(s)
     p2 = spy.ppi(data, 2)
     p2 = spy.ppi(data, 2, start=p2)
     np.all(p == p2)
Exemplo n.º 2
0
 def test_ppi_continues(self):
     '''Tests that running ppi with initial indices works as expected.'''
     data = self.data
     s = np.random.get_state()
     p = spy.ppi(data, 4)
     np.random.set_state(s)
     p2 = spy.ppi(data, 2)
     p2 = spy.ppi(data, 2, start=p2)
     assert(np.all(p == p2))
Exemplo n.º 3
0
    def test_ppi_centered(self):
        '''Tests that ppi with mean-subtracted data works as expected.'''
        data = self.data
        s = np.random.get_state()
        p = spy.ppi(data, 4)

        np.random.set_state(s)
        data_centered = data - spy.calc_stats(data).mean
        p2 = spy.ppi(data_centered, 4)
        np.all(p == p2)
Exemplo n.º 4
0
 def test_ppi_centered(self):
     '''Tests that ppi with mean-subtracted data works as expected.'''
     data = self.data
     s = np.random.get_state()
     p = spy.ppi(data, 4)
     
     np.random.set_state(s)
     data_centered = data - spy.calc_stats(data).mean
     p2 = spy.ppi(data_centered, 4)
     assert(np.all(p == p2))
Exemplo n.º 5
0
 def test_ppi_threshold(self):
     '''Tests that ppi function runs with threshold arg'''
     data = self.data
     p = spy.ppi(data, 4, 10)
Exemplo n.º 6
0
 def test_ppi(self):
     '''Tests that ppi function runs'''
     data = self.data
     p = spy.ppi(data, 4)
Exemplo n.º 7
0
 def test_ppi_threshold(self):
     '''Tests that ppi function runs with threshold arg'''
     data = self.data
     p = spy.ppi(data, 4, 10)
Exemplo n.º 8
0
 def test_ppi(self):
     '''Tests that ppi function runs'''
     data = self.data
     p = spy.ppi(data, 4)
Exemplo n.º 9
0
 def test_ppi(self):
     """Tests that ppi function runs"""
     data = self.data
     p = spy.ppi(data, 4)