Skip to content

Add iterative wcs.all_world2pix - #1281

Merged
mdboom merged 6 commits into
astropy:masterfrom
lpsinger:iterative_all_world2pix
Jul 30, 2013
Merged

mdboom merged 6 commits into
astropy:masterfrom
lpsinger:iterative_all_world2pix

Conversation

@lpsinger

Copy link
Copy Markdown
Contributor

Iterative inverse of wcs.all_pix2world. Closes #1066.

I also have a unit test in the works using some of the PTF example files that are already in astropy/astropy/wcs/tests/data, but my tests rely on #299/#1278.

Iterative inverse of wcs.all_pix2world. Closes astropy#1066.
Comment thread astropy/wcs/wcs.py

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be worth making the tolerance a user-settable parameter which defaults to 1.e-6

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. See 0486e5a.

@astrofrog

Copy link
Copy Markdown
Member

This will be very useful, thanks!

lpsinger added 3 commits July 24, 2013 15:32
The name of this variable is meant to echo the name of the function,
world2pix.
@lpsinger

Copy link
Copy Markdown
Contributor Author

The only Travis failures occur in the configurations where the optional dependencies are disabled. As intended, these produce the error message:

ImportError: You must have Scipy installed to use this method. See <http://www.scipy.org>.

Anything else needed for this PR?

@astrofrog

Copy link
Copy Markdown
Member

@lpsinger - the tests that require scipy should be skipped for configurations where scipy is not installed. Check out how the tests in astropy.cosmology do it. At the end of the day, all configurations should pass.

@lpsinger

Copy link
Copy Markdown
Contributor Author

@lpsinger - the tests that require scipy should be skipped for configurations where scipy is not installed. Check out how the tests in astropy.cosmology do it. At the end of the day, all configurations should pass.

Ah, of course. Fixed now.

@astrofrog

Copy link
Copy Markdown
Member

@mdboom - just bringing this issue to your attention in case you can review it.

Comment thread astropy/wcs/wcs.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nit. We should have a blank line before the beginning of a new method.

@mdboom

mdboom commented Jul 28, 2013

Copy link
Copy Markdown
Contributor

👍

@lpsinger

Copy link
Copy Markdown
Contributor Author

Any other requests, or is someone ready to merge this?

mdboom added a commit that referenced this pull request Jul 30, 2013
@mdboom
mdboom merged commit 443ecf4 into astropy:master Jul 30, 2013
@mdboom

mdboom commented Jul 30, 2013

Copy link
Copy Markdown
Contributor

I just merged this, and then realised too late that this should probably have an entry in whatsnew. It's a pretty major (and very useful) new feature and should be highlighted.

@lpsinger

Copy link
Copy Markdown
Contributor Author

I just merged this, and then realised too late that this should probably have an entry in whatsnew. It's a pretty major (and very useful) new feature and should be highlighted.

Thank you, it's nice of you to say so. I'll start a whatsnew patch; let me know if you are already on this.

@lpsinger
lpsinger deleted the iterative_all_world2pix branch July 30, 2013 19:08
@mdboom

mdboom commented Jul 30, 2013

Copy link
Copy Markdown
Contributor

Nope -- I was hoping you would write the entry if you can...

lpsinger added a commit to lpsinger/astropy that referenced this pull request Jul 30, 2013
@embray

embray commented Jul 31, 2013

Copy link
Copy Markdown
Member

Please also add a changelog entry for this if you could.

@lpsinger

Copy link
Copy Markdown
Contributor Author

Done.

@lpsinger

Copy link
Copy Markdown
Contributor Author

Please also add a changelog entry for this if you could.

@iguananaut, see #1307.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Iterative implementation of wcs.all_world2pix

4 participants