MCPcopy
hub / github.com/pydata/xarray / load_store

Method load_store

xarray/core/dataset.py:423–432  ·  view source on GitHub ↗

Create a new dataset from the contents of a backends.*DataStore object

(cls, store, decoder=None)

Source from the content-addressed store, hash-verified

421
422 @classmethod
423 def load_store(cls, store, decoder=None) -> Self:
424 """Create a new dataset from the contents of a backends.*DataStore
425 object
426 """
427 variables, attributes = store.load()
428 if decoder:
429 variables, attributes = decoder(variables, attributes)
430 obj = cls(variables, attrs=attributes)
431 obj.set_close(store.close)
432 return obj
433
434 @property
435 def variables(self) -> Frozen[Hashable, Variable]:

Callers

nothing calls this directly

Calls 2

loadMethod · 0.45
set_closeMethod · 0.45

Tested by

no test coverage detected