MCPcopy Index your code
hub / github.com/pydata/xarray / __init__

Method __init__

xarray/backends/scipy_.py:80–85  ·  view source on GitHub ↗
(self, variable_name: str, datastore: ScipyDataStore)

Source from the content-addressed store, hash-verified

78 dtype: np.dtype
79
80 def __init__(self, variable_name: str, datastore: ScipyDataStore) -> None:
81 self.datastore = datastore
82 self.variable_name = variable_name
83 array = self.get_variable().data
84 self.shape = array.shape
85 self.dtype = np.dtype(array.dtype.kind + str(array.dtype.itemsize))
86
87 def get_variable(self, needs_lock: bool = True) -> scipy.io.netcdf_variable:
88 ds = self.datastore._manager.acquire(needs_lock)

Callers

nothing calls this directly

Calls 2

get_variableMethod · 0.95
dtypeMethod · 0.45

Tested by

no test coverage detected