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

Method open_store_variable

xarray/backends/scipy_.py:284–289  ·  view source on GitHub ↗
(self, name: str, var: scipy.io.netcdf_variable)

Source from the content-addressed store, hash-verified

282 return self._manager.acquire()
283
284 def open_store_variable(self, name: str, var: scipy.io.netcdf_variable) -> Variable:
285 return Variable(
286 var.dimensions,
287 indexing.LazilyIndexedArray(ScipyArrayWrapper(name, self)),
288 _decode_attrs(var._attributes), # type: ignore[attr-defined] # using private attribute
289 )
290
291 def get_variables(self) -> Frozen[str, Variable]:
292 return FrozenDict(

Callers 1

get_variablesMethod · 0.95

Calls 3

VariableClass · 0.90
ScipyArrayWrapperClass · 0.85
_decode_attrsFunction · 0.85

Tested by

no test coverage detected