Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self):
super(ZARRStorageEngine, self).__init__("zarr")
self.store = zarr.DictStore()
init_group(self.store)
self._zarr = ZARRGroup(self.store)
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)
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)