Exemplo n.º 1
0
 def test_fails_diff_sizes(self):
     f = sp.arange(5432, dtype=float)
     a = sp.arange(5432, dtype=float)
     b = sp.empty(5153, dtype=float)
     status = rfi.get_fit(a, f, b)
     self.assertTrue(status)
Exemplo n.º 2
0
 def test_get_fit_size(self):
     f = sp.arange(32 * 20, dtype=float)
     a = sp.arange(32 * 20, dtype=float)
     b = sp.empty(32 * 20, dtype=float)
     status = rfi.get_fit(a, f, b)
     self.assertTrue(sp.allclose(a, b))
Exemplo n.º 3
0
 def test_get_fit_fails_32(self):
     f = sp.arange(31 * 20, dtype=float)
     a = sp.arange(31 * 20, dtype=float)
     b = sp.empty(31 * 20, dtype=float)
     status = rfi.get_fit(a, f, b)
     self.assertTrue(status)
Exemplo n.º 4
0
 def test_get_fit(self):
     f = sp.arange(2048, dtype=float)
     a = sp.arange(2048, dtype=float)
     b = sp.empty(2048, dtype=float)
     rfi.get_fit(a, f, b)
     self.assertTrue(sp.allclose(a, b))