Repository navigation
remove code with 1+ year-old DeprecationWarnings - #1851
Merged
Merged
Conversation
(except for the DeprecationWarning in gradient(); that is being handled by #1823)
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Collaborator
|
@Sevans711 One thing, |
so don't call it with **kwargs. Also, added a regression test which would have caught this issue.
Collaborator
Author
@cmdupuis3 Great catch, thank you! That was not intended; I originally fixed it in Fixed, and added a regression test which would have caught it, |
cmdupuis3
approved these changes
Oct 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1707
Overview
Finishes deprecating all code tagged with a 1+ year-old DeprecationWarning (except for the one remaining DeprecationWarning in UxDataArray.gradient(), which is instead being handled in #1823). All code removed here has had a corresponding DeprecationWarning tag for at least 14 months.
In particular, this removes:
_get_grid(..., latlon=...)(use_get_grid(..., grid_kwargs=dict(..., latlon=...))instead)obj.to_geodataframe(..., exclude_antimeridian=...)(useobj.to_geodataframe(..., periodic_elements=...)instead: periodic_elements="exclude" for exclude_antimeridian=True; periodic_elements="split" for exclude_antimeridian=False) for obj a Grid or UxDataArrayAlso tightened accepted kwargs in a few places:
api._get_grid()now no longer accepts arbitrary kwargs (which were being ignored, except for "latlon", which is now fully deprecated).Grid.to_geodataframe()andUxDataArray.to_geodataframe()no longer accept arbitrary kwargs (which were being ignored, except for "project". The "project" kwarg is now included explicitly in the signature and docstring).PR Checklist
General
Testing & Benchmarking
Documentation and Examples
docs/api.rst; internal (private) function names start with an underscore (_)AI Disclosure
AI Usage: just GitHub Copilot's inline code suggestions