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

ValueError: ... with 'kogur' section #28

Open
atb299 opened this issue Oct 3, 2022 · 4 comments · May be fixed by #29
Open

ValueError: ... with 'kogur' section #28

atb299 opened this issue Oct 3, 2022 · 4 comments · May be fixed by #29

Comments

@atb299
Copy link

atb299 commented Oct 3, 2022

When I try to run:

test = nsv.Standardizer().kogur

I get this:

ValueError: cannot re-index or align objects with conflicting indexes found for the following dimensions: 'station' (2 conflicting indexes)
Conflicting indexes may occur when
- they relate to different sets of coordinate and/or dimension names
- they don't have the same type
- they may be used to reindex data along common dimensions

Do you know if this is an out-of-date package, too, or something about the kogur section?

@malmans2 malmans2 linked a pull request Oct 4, 2022 that will close this issue
@malmans2
Copy link
Member

malmans2 commented Oct 4, 2022

It should be enough to use xarray<=2022.03.0. Unfortunately, we don't have CI with unit tests and we don't catch these kind of issues. See #29 for more context.

@atb299
Copy link
Author

atb299 commented Oct 4, 2022

OK. Thanks Mattia! I am using xarray==2022.9.0. When I created my nordic-seas-validation environment my conda was woefully out of date. Perhaps its worth me creating a new environment now that I have updated conda.

@malmans2
Copy link
Member

malmans2 commented Oct 4, 2022

Yes, probably a good idea to use a new environment if the one you are using is very old.
We didn't merge the PR #29 yet, so you should either download that branch and follow the installation instructions, or somehow downgrade to xarray=2022.03.0 (e.g., use this environment https://github.com/JMMP-Group/nordic-seas-validation/blob/pin_xarray/environment.yml)

@atb299
Copy link
Author

atb299 commented Oct 4, 2022

I can confirm that the kogur section works with xarray=2022.03.0 , but (for me at least) not with xarray=2022.09.0.

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 a pull request may close this issue.

2 participants