Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update backend.py #105

Closed
wants to merge 13 commits into from
10 changes: 6 additions & 4 deletions src/hdmf_zarr/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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):
Expand Down
Loading