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

intransparent error message detected #156

Open
semvijverberg opened this issue Feb 1, 2023 · 0 comments
Open

intransparent error message detected #156

semvijverberg opened this issue Feb 1, 2023 · 0 comments
Assignees

Comments

@semvijverberg
Copy link
Member

When running RGDR.fit() with one of the inputs being a xr.Dataset instead of an xr.DataArray, it returns the following error message:
AssertionError: Field and target dims do not match

We could check for dtype instead and return an appropriate error.
I think this is an easy mistake to make, as the resample returns a dataset even though you insert an xr.DataArray (any reason to do so?).

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

No branches or pull requests

2 participants