-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Refactor of the big if-chain to a dictionary in the form {backend_name: backend_open}. #4431
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
Conversation
Thanks for the ping @alexamici - this looks good to me. Happy to see this merged once we sort out the conflicts in #4187. |
#4187 has been merged, so this can go ahead again! |
Woops I didn't know that force pushing a branch would close the PR :/ I'll try to reopen this PR or create a new one. Sorry for the noise. |
@alexamici Force-pushing doesn't normally close it, so this is weird... |
the reason the PR was closed is that you removed the changes, so the diff to |
Thanks @keewis! So it is correct, I wanted to reset to master and re apply the changes. |
* Add docs re stable branch * Update HOW_TO_RELEASE.md Co-authored-by: keewis <[email protected]> Co-authored-by: keewis <[email protected]>
This ports the clean up of the messy if-else-chain from #3166. It should make adding the new back-end API easier.
The change is relatively trivial, but it touches code in
xr.open_dataset
so extra care should be used by reviewers. We think the change is safe and it does pass all tests.isort . && black . && mypy . && flake8
I cannot add reviewers myself, but we agreed this should go to @jhamman.