def test_align_except(self, izaRad, vzaRad, raaRad, izaDeg, vzaDeg, raaDeg): with pytest.raises(AssertionError): Kernel(array([izaRad, 2, 3]), array([izaRad, 2]), array([izaRad]), angle_unit='RAD', align=False)
def test_kernel_RAD_raa(self, izaRad, vzaRad, raaRad, izaDeg, vzaDeg, raaDeg): kernel = Kernel(izaRad, vzaRad, raaRad, angle_unit='RAD') assert allclose(raaDeg, kernel.raaDeg[0], atol=1e-4)
def test_align(self, izaRad, vzaRad, raaRad, izaDeg, vzaDeg, raaDeg): kernel = Kernel(array([izaRad, 2, 3]), array([izaRad, 2]), array([izaRad]), angle_unit='RAD') assert len(array([izaRad, 2, 3])) == len(kernel.raaDeg)
def test_kernel_DEG_raa(self, izaDeg, vzaDeg, raaDeg, izaRad, vzaRad, raaRad): kernel = Kernel(izaDeg, vzaDeg, raaDeg) assert allclose(raaRad, kernel.raa[0], atol=1e-4)