-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Description
There are DeprecationWarnings from xgcm that are polluting the test suite.
Warning 1
/usr/share/miniconda3/envs/xcdat_ci/lib/python3.11/site-packages/xgcm/grid.py:1283: DeprecationWarning: The `xgcm.Axis` class will be deprecated in the future. Please make sure to use the `xgcm.Grid` methods for your work instead.Source:
- https://github.com/xgcm/xgcm/blob/0934c3722d0b8e4842fe8e1bc3daba2ee70f665b/xgcm/grid.py#L1282-L1288
- These warnings will always appear whenever we reference the
Gridclass. Idk why they decided to do this instead of having the warning in theAxisclass instead.
Solution:
- Now - silence these specific deprecation warnings (done in Fix
get_bounds()error message #776) - Future - The next xgcm will remove the Axis class and the deprecation warnings
Warning 2
/usr/share/miniconda3/envs/xcdat_ci/lib/python3.11/site-packages/xgcm/grid.py:989: FutureWarning: From version 0.8.0 the Axis computation methods will be removed, in favour of using the Grid computation methods instead. i.e. use `Grid.transform` instead of `Axis.transform`
warnings.warn(Source:
- https://github.com/xgcm/xgcm/blob/0934c3722d0b8e4842fe8e1bc3daba2ee70f665b/xgcm/grid.py#L989-L994
- These warnings will always appear like the other warning.
Solution:
- Now - silence these specific deprecation warnings
- Future - The next xgcm will remove the Axis class and the deprecation warnings
Warning 3
Also a "yaksa: 10 leaked handle pool objects".
Not sure what is causing this one.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done