Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

astropy/docs/wcs/examples/from_file.py needs updating #5285

Open
vtcloud opened this issue Aug 31, 2016 · 1 comment
Open

astropy/docs/wcs/examples/from_file.py needs updating #5285

vtcloud opened this issue Aug 31, 2016 · 1 comment

Comments

@vtcloud
Copy link

vtcloud commented Aug 31, 2016

Hi,
running the example in astropy/docs/wcs/examples/from_file.py throws me an value error:

    ValueError: When providing two arguments, the array must be of shape (N, 3)

on line 25. Changing the line from:

    pixcrd = numpy.array([[0, 0], [24, 38], [45, 98]], numpy.float_) 

->

    pixcrd = numpy.array([[0, 24, 45], [0, 38, 98]], numpy.float_)

solves the problem.

EDIT: Fixed formatting.

@bsipocz
Copy link
Member

bsipocz commented Oct 10, 2016

@vtcloud - Could you please provide more information (versions and full trace log)? The example works for me (astropy 1.2.1, numpy 1.11.2, python 3.4) as is and I'm not able to reproduce the error you're getting.
There wasn't any changes to the example itself for quite a while now, so I assume it should work for older astropy versions, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants