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

Added additional Exception when user is trying to destagger unstaggered variable #148

Conversation

lpilz
Copy link
Collaborator

@lpilz lpilz commented Dec 1, 2023

Change Summary

We just add another Exception for the case a user is trying to destagger an unstaggered variable. Adding this additional elif only leaves the remaining condition len(stagger_dim) == 1 continuing to execute.

Related issue number

Closes #147

Checklist

  • Unit tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable

@lpilz lpilz requested a review from jthielen December 1, 2023 13:01
Copy link
Collaborator

@jthielen jthielen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@lpilz lpilz merged commit 087c83c into xarray-contrib:main Dec 1, 2023
5 checks passed
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 this pull request may close these issues.

[Bug]: Destaggering WRF 10m Wind: List Index Out of Range Error
2 participants