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

Method _acquire

xarray/backends/h5netcdf_.py:267–272  ·  view source on GitHub ↗
(self, needs_lock=True)

Source from the content-addressed store, hash-verified

265 )
266
267 def _acquire(self, needs_lock=True):
268 with self._manager.acquire_context(needs_lock) as root:
269 ds = _nc4_require_group(
270 root, self._group, self._mode, create_group=_h5netcdf_create_group
271 )
272 return ds
273
274 @property
275 def ds(self):

Callers 2

dsMethod · 0.95
get_arrayMethod · 0.45

Calls 2

_nc4_require_groupFunction · 0.90
acquire_contextMethod · 0.45

Tested by

no test coverage detected