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

Remove close_on_error store.py #4719

Merged
merged 2 commits into from
Dec 22, 2020
Merged

Remove close_on_error store.py #4719

merged 2 commits into from
Dec 22, 2020

Conversation

aurghs
Copy link
Collaborator

@aurghs aurghs commented Dec 21, 2020

Remove close_on_error in store.py. This change involves only apiv2.
Currently, api_v2.open_dataset can take in input a store instead of a file. In case of error, xarray closes the store.
Xarray should manage the closure of a store that has been instantiated externally.
This PR correct this behaviour in apiv2

@pep8speaks
Copy link

pep8speaks commented Dec 21, 2020

Hello @aurghs! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-12-21 17:40:04 UTC

@aurghs aurghs requested review from shoyer and removed request for shoyer December 21, 2020 19:17
@alexamici alexamici merged commit 5179cd9 into pydata:master Dec 22, 2020
alexamici added a commit that referenced this pull request Dec 22, 2020
* Add a guess_engine function to plugins.

* Move most of the logic in _autodetect_engine to plugins

* Add the remaining bits to autodetect logic that were not tested

* Sync the APIv1 exception message with APIv2

* Apply suggestions from code review

Co-authored-by: keewis <[email protected]>

* Move read_magic_number logic to util.py and better error message

* Add missing guess_can_open in pydap

* Remove close_on_error store.py (#4719)

* remove close on error for external store

* remove not used import

* Remove unused import (fallout from merge)

Co-authored-by: keewis <[email protected]>
Co-authored-by: aurghs <[email protected]>
toddrjen pushed a commit to toddrjen/xarray that referenced this pull request Dec 31, 2020
* remove close on error for external store

* remove not used import
toddrjen pushed a commit to toddrjen/xarray that referenced this pull request Dec 31, 2020
* Add a guess_engine function to plugins.

* Move most of the logic in _autodetect_engine to plugins

* Add the remaining bits to autodetect logic that were not tested

* Sync the APIv1 exception message with APIv2

* Apply suggestions from code review

Co-authored-by: keewis <[email protected]>

* Move read_magic_number logic to util.py and better error message

* Add missing guess_can_open in pydap

* Remove close_on_error store.py (pydata#4719)

* remove close on error for external store

* remove not used import

* Remove unused import (fallout from merge)

Co-authored-by: keewis <[email protected]>
Co-authored-by: aurghs <[email protected]>
@aurghs aurghs deleted the fix_close_on_error branch February 11, 2021 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants