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

Request to fix breaking changes post version 2022.3 #8053

Closed
rj678 opened this issue Aug 8, 2023 · 3 comments
Closed

Request to fix breaking changes post version 2022.3 #8053

rj678 opened this issue Aug 8, 2023 · 3 comments
Labels
needs triage Issue that has not been reviewed by xarray team member

Comments

@rj678
Copy link

rj678 commented Aug 8, 2023

What is your issue?

hello - I have the following code that was tested a while back with version 2022.3:

dsi = xr.open_dataset(sample_dataset)
dsi = dsi.assign_coords(LONGITUDE=("TIME",dsi.LONGITUDE.values), LATITUDE=("TIME",dsi.LATITUDE.values))
dsi = dsi.drop("POSITION_QC")

dsi = dsi.where(dsi.TIME.dt.month==month, drop=True)[["CPHL_ADJUSTED", "PRES"]]

with the current version, it throws the following error on the last line of the snippet above:

xarray ValueError: cannot re-index or align objects with conflicting indexes found for the following dimensions

I'm able to run the code with version 2022.3, but I've recently started using xarray and it'd help me greatly if someone would be kind enough to help with the required edit to the code so I can use the current version of xarray

I'm running the code on some local sample data, but I believe this error is pretty general and should be reproducible with a different sample dataset - some folks have encountered a similar error before:

#6881

please let me know if I can provide any further information - thank you!

@rj678 rj678 added the needs triage Issue that has not been reviewed by xarray team member label Aug 8, 2023
@welcome
Copy link

welcome bot commented Aug 8, 2023

Thanks for opening your first issue here at xarray! Be sure to follow the issue template!
If you have an idea for a solution, we would really welcome a Pull Request with proposed changes.
See the Contributing Guide for more.
It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better.
Thank you!

@benbovy
Copy link
Member

benbovy commented Aug 8, 2023

Hi @rj678,

Could you provide a fully reproducible example and post the full error message, please? Also please use the template available in this repository when submitting a new bug report.

@rj678
Copy link
Author

rj678 commented Aug 8, 2023

thank you for replying @benbovy - I have opened a new bug report and provided all of the details here:

#8056

closing this issue - look forward to getting your feedback on the new issue - thank you

@rj678 rj678 closed this as completed Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Issue that has not been reviewed by xarray team member
Projects
None yet
Development

No branches or pull requests

2 participants