Skip to content
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

xarray compatibility #90

Closed
hendrikverdonck opened this issue Nov 26, 2024 · 0 comments
Closed

xarray compatibility #90

hendrikverdonck opened this issue Nov 26, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@hendrikverdonck
Copy link
Collaborator

CampbellViewer uses xarray as the internal data structure. This package is also used to save and load 'databases' to netcdf.

Older xarray versions are not compatible with Numpy 2+. This problem has been solved with xarray version 2023.9.0 (pydata/xarray#8117).

The latest xarray versions (2024.7.0) lead to another error. Something must have changed in the loading of the data into our internal data structure.

@hendrikverdonck hendrikverdonck added the bug Something isn't working label Nov 26, 2024
@hendrikverdonck hendrikverdonck self-assigned this Nov 26, 2024
hendrikverdonck added a commit that referenced this issue Nov 26, 2024
… loading a database the modal information (saved as a string) is converted in AEMode objects. This was previously done one after the other for each element in the xarray dataset list. This did not work anymore. Now all AEMode instances are first gathered in a list with a list comprehension and the xarray dataset list variable is replaced in one call. Ref #90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant