Create a new dataset from the contents of a backends.*DataStore object
(cls, store, decoder=None)
| 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]: |