Skip to content

trim_image calls CCDData slicing even if fits_section is given. - #282

Merged
crawfordsm merged 1 commit into
astropy:masterfrom
MSeifert04:trim_image_fix
Jan 16, 2016
Merged

crawfordsm merged 1 commit into
astropy:masterfrom
MSeifert04:trim_image_fix

Conversation

@MSeifert04

Copy link
Copy Markdown
Contributor

From a discussion in #281 (comment).

I think it would be best to rely on CCDData.__getdata__ instead of trying to the same inside the trim_image function itself.

@crawfordsm crawfordsm added this to the 0.4 milestone Jan 15, 2016
@crawfordsm

Copy link
Copy Markdown
Member

Thanks for the contribution @MSeifert04 ! I'm just thinking about whether this needs any tests as it was addressing a specific issue, but since there is already a WCS test in the unit tests and the NAXIS issue is an astropy.wcs issues, I don't think so. Also since no functionality is changed, it doesn't need a changelog, so I'll test it out and then merge it.

@MSeifert04

Copy link
Copy Markdown
Contributor Author

@crawfordsm Sorry I was a bit sparse with the details: Since it wasn't found out as a bug I did not add it to the changelog. With test cases I wasn't sure since the only difference was with the wcs not being sliced and I don't know how to test different WCS for equality (since that is part of the original issue).

@crawfordsm

Copy link
Copy Markdown
Member

Thanks @MSeifert04 -- merging

crawfordsm added a commit that referenced this pull request Jan 16, 2016
trim_image calls CCDData slicing even if fits_section is given.
@crawfordsm
crawfordsm merged commit f1e1d1b into astropy:master Jan 16, 2016
@MSeifert04
MSeifert04 deleted the trim_image_fix branch February 28, 2016 15:34
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.

2 participants