-
Notifications
You must be signed in to change notification settings - Fork 314
Rename min_area() and max_area() methods #1565
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
Codecov Report
@@ Coverage Diff @@
## master #1565 +/- ##
==========================================
- Coverage 92.54% 92.53% -0.01%
==========================================
Files 251 251
Lines 36761 36768 +7
==========================================
+ Hits 34022 34025 +3
- Misses 2739 2743 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
LGTM.
Should we start using deprecation warnings? (#1554)
Sure, I can do that. But as those are not shown by default, practically no-one using this feature would ever see the warning. |
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.
Besides maybe using a DeprecationWarning, this looks good to me. Now I just need to update my tutorials to use this once this is released.
DeepCode failed to analyze this pull requestSomething went wrong despite trying multiple times, sorry about that. |
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.
LGTM
To clarify naming, this PR renames the
Scene.min_area()
andScene.max_area()
to.coarsest_area()
and.finest_area()
, respectively. The original naming was causing confusion what was meant: ismin_area()
the "geographically smallest area in the scene", "area with smallest pixels (highest resolution)" or "area of the data with smallest resolution (highest resolution)"? The new naming introduced in this PR got consensus in Slack, so lets use these. Warnings about the naming changes have been added.