Skip to content

Commit

Permalink
default object_codec_class -> JSON
Browse files Browse the repository at this point in the history
magland committed Mar 5, 2024
1 parent 556ed12 commit 8958fc7
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/hdmf_zarr/backend.py
Original file line number Diff line number Diff line change
@@ -94,7 +94,7 @@ def can_read(path):
'default': None},
{'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.',
'Use numcodecs.JSON by default.',
'default': None},
{'name': 'storage_options', 'type': dict,
'doc': 'Zarr storage options to read remote folders',
8 changes: 5 additions & 3 deletions src/hdmf_zarr/nwb.py
Original file line number Diff line number Diff line change
@@ -27,9 +27,10 @@ class NWBZarrIO(ZarrIO):
'doc': 'a path to a namespace, a TypeMap, or a list consisting paths to namespaces and TypeMaps',
'default': None})
def __init__(self, **kwargs):
path, mode, manager, extensions, load_namespaces, synchronizer, storage_options = \
path, mode, manager, extensions, load_namespaces, synchronizer, storage_options, object_codec_class = \
popargs('path', 'mode', 'manager', 'extensions',
'load_namespaces', 'synchronizer', 'storage_options', kwargs)
'load_namespaces', 'synchronizer', 'storage_options',
'object_codec_class', kwargs)
if load_namespaces:
if manager is not None:
warn("loading namespaces from file - ignoring 'manager'")
@@ -53,7 +54,8 @@ def __init__(self, **kwargs):
manager=manager,
mode=mode,
synchronizer=synchronizer,
storage_options=storage_options)
storage_options=storage_options,
object_codec_class=object_codec_class)

@docval({'name': 'src_io', 'type': HDMFIO, 'doc': 'the HDMFIO object for reading the data to export'},
{'name': 'nwbfile', 'type': 'NWBFile',

0 comments on commit 8958fc7

Please sign in to comment.