-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
There are two failures in TestPhysicsSphericalRepresentation
with the new numy beta release:
____________ TestPhysicsSphericalRepresentation.test_init_quantity _____________
self = <astropy.coordinates.tests.test_representation.TestPhysicsSphericalRepresentation object at 0x7f507be01630>
def test_init_quantity(self):
s3 = PhysicsSphericalRepresentation(phi=8 * u.hourangle, theta=5 * u.deg, r=10 * u.kpc)
> assert s3.phi == 8. * u.hourangle
E assert <Angle 7.999999999999999 hourangle> == (8.0 * Unit("hourangle"))
E + where <Angle 7.999999999999999 hourangle> = <PhysicsSphericalRepresentation (phi, theta, r) in (hourangle, deg, kpc)\n (8.0, 5.0, 10.0)>.phi
E + and Unit("hourangle") = u.hourangle
/usr/lib/python3/dist-packages/astropy/coordinates/tests/test_representation.py:331: AssertionError
____________ TestPhysicsSphericalRepresentation.test_init_phitheta _____________
self = <astropy.coordinates.tests.test_representation.TestPhysicsSphericalRepresentation object at 0x7f50817cb6a0>
def test_init_phitheta(self):
s2 = PhysicsSphericalRepresentation(Angle(8, u.hour),
Angle(5, u.deg),
Distance(10, u.kpc))
> assert s2.phi == 8. * u.hourangle
E assert <Angle 7.999999999999999 hourangle> == (8.0 * Unit("hourangle"))
E + where <Angle 7.999999999999999 hourangle> = <PhysicsSphericalRepresentation (phi, theta, r) in (hourangle, deg, kpc)\n (8.0, 5.0, 10.0)>.phi
E + and Unit("hourangle") = u.hourangle
/usr/lib/python3/dist-packages/astropy/coordinates/tests/test_representation.py:345: AssertionError
This code worked well with numpy-1.10. wcslib version for both (just in case that it matters) is 5.13.
Full test log here