How to use the zarr.storage.init_group function in zarr

To help you get started, we’ve selected a few zarr examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jdfekete / progressivis / progressivis / storage / zarr.py View on Github external
def __init__(self):
        super(ZARRStorageEngine, self).__init__("zarr")
        self.store = zarr.DictStore()
        init_group(self.store)
        self._zarr = ZARRGroup(self.store)
github jdfekete / progressivis / progressivis / storage / zarr.py View on Github external
def _require_group_nosync(self, name, overwrite=False):
        path = self._item_path(name)

        # create terminal group if necessary
        if not contains_group(self._store, path):
            init_group(store=self._store, path=path,
                       chunk_store=self._chunk_store,
                       overwrite=overwrite)

        return ZARRGroup(self._store, path=path, read_only=self._read_only,
                         chunk_store=self._chunk_store,
                         synchronizer=self._synchronizer)
github jdfekete / progressivis / progressivis / storage / zarr.py View on Github external
def _create_group_nosync(self, name, overwrite=False):
        path = self._item_path(name)

        # create terminal group
        init_group(self._store, path=path, chunk_store=self._chunk_store,
                   overwrite=overwrite)

        return ZARRGroup(self._store, path=path, read_only=self._read_only,
                         chunk_store=self._chunk_store,
                         synchronizer=self._synchronizer)