diff --git a/src/hdmf_zarr/backend.py b/src/hdmf_zarr/backend.py index 688d387d..1819bd01 100644 --- a/src/hdmf_zarr/backend.py +++ b/src/hdmf_zarr/backend.py @@ -94,11 +94,13 @@ def can_read(path): {'name': 'object_codec_class', 'type': None, 'doc': 'Set the numcodec object codec class to be used to encode objects.' 'Use numcodecs.pickles.Pickle by default.', - 'default': None}) + 'default': None}, + {'name': 'external_resources_path', 'type': str, 'doc': 'The path to the ExternalResources', + 'default': None},) def __init__(self, **kwargs): self.logger = logging.getLogger('%s.%s' % (self.__class__.__module__, self.__class__.__qualname__)) - path, manager, mode, synchronizer, object_codec_class = popargs( - 'path', 'manager', 'mode', 'synchronizer', 'object_codec_class', kwargs) + path, manager, mode, synchronizer, object_codec_class, external_resources_path = popargs( + 'path', 'manager', 'mode', 'synchronizer', 'object_codec_class', 'external_resources_path', kwargs) if manager is None: manager = BuildManager(TypeMap(NamespaceCatalog())) if isinstance(synchronizer, bool): @@ -120,7 +122,7 @@ def __init__(self, **kwargs): source_path = self.__path if isinstance(self.__path, SUPPORTED_ZARR_STORES): source_path = self.__path.path - super().__init__(manager, source=source_path) + super().__init__(manager, source=source_path, external_resources_path=external_resources_path) @property def file(self):