Skip to content

Commit 606e1d9

Browse files
authored
Fix open_mfdataset with engine='pynio' (#965)
Fixes GH936
1 parent 7828356 commit 606e1d9

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

doc/whats-new.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ v0.8.2 (unreleased)
2020

2121
Enhancements
2222
~~~~~~~~~~~~
23+
2324
- New documentation on :ref:`panel transition`. By
2425
`Maximilian Roos <https://github.com/MaximilianR>`_.
2526
- New ``Dataset`` and ``DataArray`` methods :py:meth:`to_dict` and
@@ -30,13 +31,15 @@ Enhancements
3031
Bug fixes
3132
~~~~~~~~~
3233

33-
- Fix to ensure xarray works with h5netcdf v0.3.0 for arrays with ``dtype=str``
34+
- Ensure xarray works with h5netcdf v0.3.0 for arrays with ``dtype=str``
3435
(:issue:`953`). By `Stephan Hoyer <https://github.com/shoyer>`_.
35-
- ``Dataset.__dir__()`` (i.e. the method python calls to get autocomplete options) failed
36-
if one of the dataset's keys was not a string (:issue:`852`). By
37-
`Maximilian Roos <https://github.com/maximilianr>`_.
38-
- ``Dataset`` constructor can now take arbitrary objects as values (:issue:`647`)
39-
36+
- ``Dataset.__dir__()`` (i.e. the method python calls to get autocomplete
37+
options) failed if one of the dataset's keys was not a string (:issue:`852`).
38+
By `Maximilian Roos <https://github.com/maximilianr>`_.
39+
- ``Dataset`` constructor can now take arbitrary objects as values
40+
(:issue:`647`). By `Maximilian Roos <https://github.com/maximilianr>`_.
41+
- Fix ``open_mfdataset`` with ``engine='pynio'`` (:issue:`936`).
42+
By `Stephan Hoyer <https://github.com/shoyer>`_.
4043

4144
.. _whats-new.0.8.1:
4245

xarray/backends/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def _default_lock(filename, engine):
5656
# TODO: identify netcdf3 files and don't use the global lock
5757
# for them
5858
lock = _global_lock
59-
elif engine == 'h5netcdf':
59+
elif engine in {'h5netcdf', 'pynio'}:
6060
lock = _global_lock
6161
else:
6262
lock = False

0 commit comments

Comments
 (0)