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

Added support for GridImage deprecation in OptsSpec parser #1292

Merged
merged 2 commits into from
Apr 14, 2017

Conversation

jlstevens
Copy link
Contributor

This PR addresses issue #1252 by converting 'GridImage' to 'Image' in the opts parser. Here is an example of what it does:

image

@jlstevens
Copy link
Contributor Author

@philippjfr In raster.py we have:

GridImage = Image

Would it be worth wrapping GridImage as a subclass of Image, just to issue a deprecation warning in the constructor?

@philippjfr
Copy link
Member

Would it be worth wrapping GridImage as a subclass of Image, just to issue a deprecation warning in the constructor?

Not a bad idea.

@jlstevens
Copy link
Contributor Author

jlstevens commented Apr 14, 2017

Now when you try to build a GridImage:

image

@jlstevens
Copy link
Contributor Author

@philippjfr Ready to review.

I think this PR should make things easier for anyone who might be using GridImage. You could try very fancy things (e.g remapping the option tree) but I think these simple changes should do the trick.

@philippjfr
Copy link
Member

This PR addresses issue #1252 by converting 'GridImage' to 'Image' in the opts parser.

This does miss any explicitly assigning to the option tree which I've used in a few places. But since anything else is bound to be complex I'm fine with this since we also have the warning. Will merge when tests pass.

@philippjfr philippjfr merged commit cf33ce1 into master Apr 14, 2017
@philippjfr philippjfr deleted the gridimage_deprecation branch April 19, 2017 21:38
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants