Exemplo n.º 1
0
    def test_mesh(self):
        """Parabolic dish mesh looks OK"""
        p = ParabolicDishGM(5, 3)
        x, y, z = p.mesh(5)

        N.testing.assert_array_almost_equal(z, p.a * (x**2 + y**2))
        self.failIf(N.any(x**2 + y**2 > 6.25))
Exemplo n.º 2
0
 def test_mesh(self):
     """Parabolic dish mesh looks OK"""
     p = ParabolicDishGM(5, 3)
     x, y, z = p.mesh(5)
     
     N.testing.assert_array_almost_equal(z, p.a*(x**2 + y**2))
     self.failIf(~N.any(x**2 + y**2 <= 6.25)) # Somehow thsi got over a strange floating point error...
Exemplo n.º 3
0
 def test_mesh(self):
     """Parabolic dish mesh looks OK"""
     p = ParabolicDishGM(5, 3)
     x, y, z = p.mesh(5)
     
     N.testing.assert_array_almost_equal(z, p.a*(x**2 + y**2))
     self.failIf(N.any(x**2 + y**2 > 6.25))
Exemplo n.º 4
0
    def test_mesh(self):
        """Parabolic dish mesh looks OK"""
        p = ParabolicDishGM(5, 3)
        x, y, z = p.mesh(5)

        N.testing.assert_array_almost_equal(z, p.a * (x**2 + y**2))
        self.failIf(
            ~N.any(x**2 + y**2 <= 6.25)
        )  # Somehow thsi got over a strange floating point error...