JMMP-Group / nordic-seas-validation

MIT License
0 stars 1 forks source link

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

Open atb299 opened 2 years ago

atb299 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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