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

Method get_array

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

Source from the content-addressed store, hash-verified

60
61class H5NetCDFArrayWrapper(BaseNetCDF4Array):
62 def get_array(self, needs_lock=True):
63 ds = self.datastore._acquire(needs_lock)
64 return ds.variables[self.variable_name]
65
66 def __getitem__(self, key):
67 return indexing.explicit_indexing_adapter(

Callers 1

_getitemMethod · 0.95

Calls 1

_acquireMethod · 0.45

Tested by

no test coverage detected