use vertices_per_side argument rather than frequency which is deprecated#712
use vertices_per_side argument rather than frequency which is deprecated#712mraspaud merged 2 commits intopytroll:mainfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #712 +/- ##
=======================================
Coverage 93.67% 93.67%
=======================================
Files 89 89
Lines 13621 13656 +35
=======================================
+ Hits 12759 12792 +33
- Misses 862 864 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Found a few more instances of the same issue. Also fixed now. |
|
IIRC, a frequency=10 meant a vertex every 10 pixels, so just using 10 for vertices_per_sides will probably yield different results... |
|
I did check the functions and My knowledge of pyresample is quite limited, but what I understand from your comment is that perhaps they should be interpreted differently? |
|
Indeed, my bad, thanks for pointing me to the implementation! |
mraspaud
left a comment
There was a problem hiding this comment.
LGTM! Thanks for reducing the warning count!
get_polygon_to_containused the deprecated frequency argument:The
get_polygon_to_containfunction and call toget_edge_bbox_in_projection_coordinates:pyresample/pyresample/slicer.py
Line 173 in 60e6132
And the "PendingDeprecationWarning" in
get_edge_bbox_in_projection_coordinates:pyresample/pyresample/geometry.py
Line 1681 in 60e6132
get_polygon_to_containuses the deprecated frequency argument #711