MCPcopy Create free account
hub / github.com/pydata/xarray / _acquire

Method _acquire

xarray/backends/netCDF4_.py:531–534  ·  view source on GitHub ↗
(self, needs_lock=True)

Source from the content-addressed store, hash-verified

529 return cls(manager, group=group, mode=mode, lock=lock, autoclose=autoclose)
530
531 def _acquire(self, needs_lock=True):
532 with self._manager.acquire_context(needs_lock) as root:
533 ds = _nc4_require_group(root, self._group, self._mode)
534 return ds
535
536 @property
537 def ds(self):

Callers 2

dsMethod · 0.95
get_arrayMethod · 0.45

Calls 2

_nc4_require_groupFunction · 0.85
acquire_contextMethod · 0.45

Tested by

no test coverage detected