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

Add PixCoord.xy #247

Merged
merged 1 commit into from Apr 23, 2019

Conversation

@eteq
Copy link
Member

commented Mar 13, 2019

This does a pretty trivial thing of adding a convenience accessor to PixCoord called xy, which just does (self.x, self.y).

The basic motivation for this is to make interfacing regions and photutils slightly easier - photutils apertures are (x,y) tuples, so it's a light cleaner to be able to do photutils.CircularAperture([skyregion.to_pixel(wcs).xy, ...], ...) than the alternative. More broadly, I suspect there are various other situations where such an accessor is more convenient than having to individually index x and y.

@larrybradley larrybradley merged commit 452d962 into astropy:master Apr 23, 2019

4 checks passed

ci/circleci Your tests passed on CircleCI!
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage increased (+0.01%) to 87.198%
Details

@cdeil cdeil added this to the 0.4 milestone Jun 17, 2019

@cdeil cdeil changed the title add PixCoord.xy Add PixCoord.xy Jun 17, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.