Skip to content

Fix DeprecationWarning#54

Merged
tomsail merged 2 commits intooceanmodeling:mainfrom
lucduron:fix-deprecation-warning
May 30, 2025
Merged

Fix DeprecationWarning#54
tomsail merged 2 commits intooceanmodeling:mainfrom
lucduron:fix-deprecation-warning

Conversation

@lucduron
Copy link
Collaborator

Warnings which are fixed:

xarray_selafin\xarray_backend.py:165: DeprecationWarning: __array__ implementation doesn't accept a copy keyword, so passing copy=False failed. __array__ must implement 'dtype' and 'copy' keyword arguments.
  temp[iv] = ds[var]

xarray_selafin\xarray_backend.py:167: DeprecationWarning: __array__ implementation doesn't accept a copy keyword, so passing copy=False failed. __array__ must implement 'dtype' and 'copy' keyword arguments.
  temp[iv] = ds.isel(time=it)[var]

lucduron added 2 commits May 28, 2025 16:45
xarray_selafin\xarray_backend.py:166: DeprecationWarning: __array__ implementation doesn't accept a copy keyword, so passing copy=False failed. __array__ must implement 'dtype' and 'copy' keyword arguments.
    temp[iv] = ds.isel(time=it)[var]
@lucduron
Copy link
Collaborator Author

The third and last PR of the day ;)
Thank you for the integration !

@tomsail tomsail merged commit 9133af9 into oceanmodeling:main May 30, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants