File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 99from collections .abc import Hashable
1010from typing import Any
1111
12- from xarray .backends .locks import acquire , NETCDF4_PYTHON_LOCK
12+ from xarray .backends .locks import NETCDF4_PYTHON_LOCK , acquire
1313from xarray .backends .lru_cache import LRUCache
1414from xarray .core import utils
1515from xarray .core .options import OPTIONS
Original file line number Diff line number Diff line change @@ -282,4 +282,5 @@ def ensure_lock(lock):
282282 return DummyLock ()
283283 return lock
284284
285+
285286NETCDF4_PYTHON_LOCK = combine_locks ([NETCDFC_LOCK , HDF5_LOCK ])
Original file line number Diff line number Diff line change 2323)
2424from xarray .backends .file_manager import CachingFileManager , DummyFileManager
2525from xarray .backends .locks import (
26- HDF5_LOCK ,
27- NETCDFC_LOCK ,
2826 NETCDF4_PYTHON_LOCK ,
27+ NETCDFC_LOCK ,
2928 combine_locks ,
3029 ensure_lock ,
3130 get_write_lock ,
You can’t perform that action at this time.
0 commit comments