-
-
Notifications
You must be signed in to change notification settings - Fork 54
Made error message more helpful when cropping to a single pixel #869
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
Conversation
@@ -127,7 +127,7 @@ def get_crop_item_from_points(points, wcs, crop_by_values, keepdims): | |||
Denotes whether cropping is done using high-level objects or "values", | |||
i.e. low-level objects. | |||
keep_dims : `bool` | |||
keepdims : `bool` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is keepdims, not keep_dims?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm simply making the docstring match the API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this was more of a question for the two maintainers of ndcube than you.
@Cadair and @DanRyanIrish, explain yourselves.
Can we get a changelog please? |
Changelog entry added under |
…to a single pixel
…on-2.3 Backport PR #869 on branch 2.3 (Made error message more helpful when cropping to a single pixel)
The error message when cropping to a single pixel does not currently make it clear that one can get the single pixel by setting
keepdims=True
. This PR adds that helpful information. This PR also fixes a typo in the utility function's docstring.