{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/astropy/issues/4548","labels_url":"https://api.github.com/repos/astropy/astropy/issues/4548/labels{/name}","comments_url":"https://api.github.com/repos/astropy/astropy/issues/4548/comments","events_url":"https://api.github.com/repos/astropy/astropy/issues/4548/events","html_url":"https://github.com/astropy/astropy/issues/4548","id":130299965,"number":4548,"title":"1.1.1: TestPhysicsSphericalRepresentation failure with numpy 1.11.0 beta 2 ","user":{"login":"olebole","id":397223,"avatar_url":"https://avatars.githubusercontent.com/u/397223?v=3","gravatar_id":"","url":"https://api.github.com/users/olebole","html_url":"https://github.com/olebole","followers_url":"https://api.github.com/users/olebole/followers","following_url":"https://api.github.com/users/olebole/following{/other_user}","gists_url":"https://api.github.com/users/olebole/gists{/gist_id}","starred_url":"https://api.github.com/users/olebole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olebole/subscriptions","organizations_url":"https://api.github.com/users/olebole/orgs","repos_url":"https://api.github.com/users/olebole/repos","events_url":"https://api.github.com/users/olebole/events{/privacy}","received_events_url":"https://api.github.com/users/olebole/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-01T08:53:41Z","updated_at":"2016-02-01T19:34:05Z","closed_at":null,"body":"There are two failures in `TestPhysicsSphericalRepresentation` with the new numy beta release:\r\n```\r\n____________ TestPhysicsSphericalRepresentation.test_init_quantity _____________\r\nself = <astropy.coordinates.tests.test_representation.TestPhysicsSphericalRepresentation object at 0x7f507be01630>\r\n\r\n    def test_init_quantity(self):\r\n    \r\n        s3 = PhysicsSphericalRepresentation(phi=8 * u.hourangle, theta=5 * u.deg, r=10 * u.kpc)\r\n>       assert s3.phi == 8. * u.hourangle\r\nE       assert <Angle 7.999999999999999 hourangle> == (8.0 * Unit(\"hourangle\"))\r\nE        +  where <Angle 7.999999999999999 hourangle> = <PhysicsSphericalRepresentation (phi, theta, r) in (hourangle, deg, kpc)\\n    (8.0, 5.0, 10.0)>.phi\r\nE        +  and   Unit(\"hourangle\") = u.hourangle\r\n\r\n/usr/lib/python3/dist-packages/astropy/coordinates/tests/test_representation.py:331: AssertionError\r\n____________ TestPhysicsSphericalRepresentation.test_init_phitheta _____________\r\n\r\nself = <astropy.coordinates.tests.test_representation.TestPhysicsSphericalRepresentation object at 0x7f50817cb6a0>\r\n\r\n    def test_init_phitheta(self):\r\n    \r\n        s2 = PhysicsSphericalRepresentation(Angle(8, u.hour),\r\n                                            Angle(5, u.deg),\r\n                                            Distance(10, u.kpc))\r\n    \r\n>       assert s2.phi == 8. * u.hourangle\r\nE       assert <Angle 7.999999999999999 hourangle> == (8.0 * Unit(\"hourangle\"))\r\nE        +  where <Angle 7.999999999999999 hourangle> = <PhysicsSphericalRepresentation (phi, theta, r) in (hourangle, deg, kpc)\\n    (8.0, 5.0, 10.0)>.phi\r\nE        +  and   Unit(\"hourangle\") = u.hourangle\r\n\r\n/usr/lib/python3/dist-packages/astropy/coordinates/tests/test_representation.py:345: AssertionError\r\n```\r\nThis code worked well with numpy-1.10. wcslib version for both (just in case that it matters) is 5.13.\r\nFull test log [here](https://ci.debian.net/data/packages/unstable/amd64/p/python-astropy/20160131_061934.autopkgtest.log.gz)"},"comment":{"url":"https://api.github.com/repos/astropy/astropy/issues/comments/178145581","html_url":"https://github.com/astropy/astropy/issues/4548#issuecomment-178145581","issue_url":"https://api.github.com/repos/astropy/astropy/issues/4548","id":178145581,"user":{"login":"njsmith","id":609896,"avatar_url":"https://avatars.githubusercontent.com/u/609896?v=3","gravatar_id":"","url":"https://api.github.com/users/njsmith","html_url":"https://github.com/njsmith","followers_url":"https://api.github.com/users/njsmith/followers","following_url":"https://api.github.com/users/njsmith/following{/other_user}","gists_url":"https://api.github.com/users/njsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/njsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/njsmith/subscriptions","organizations_url":"https://api.github.com/users/njsmith/orgs","repos_url":"https://api.github.com/users/njsmith/repos","events_url":"https://api.github.com/users/njsmith/events{/privacy}","received_events_url":"https://api.github.com/users/njsmith/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T19:34:05Z","updated_at":"2016-02-01T19:34:05Z","body":"Filed numpy/numpy#7161 to track -- please do report these things upstream! We want to know! :-)\r\n\r\nNothing comes to mind as an obvious cause, but it seems eminently bisectable if someone wants to try. (Basically: write a little script that exits successfully if the test passes and exits with an error code if the test fails, then clone numpy and do `git bisect start; git bisect bad master; git bisect good origin/maintenance/1.10.x; git bisect run ./runtests.py my-script.py`.)"}}