Skip to content

Commit

Permalink
gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 committed Jul 8, 2024
1 parent 70e186c commit b175dc9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/hdmf_zarr/nwb.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ def __init__(self, **kwargs):
path, mode, manager, extensions, load_namespaces, synchronizer, storage_options = \
popargs('path', 'mode', 'manager', 'extensions',
'load_namespaces', 'synchronizer', 'storage_options', kwargs)

io_modes_that_create_file = ['w', 'w-', 'x']
if mode in io_modes_that_create_file or manager is not None or extensions is not None:
load_namespaces = False

if load_namespaces:
tm = get_type_map()
super(NWBZarrIO, self).load_namespaces(tm, path, storage_options)
Expand Down

0 comments on commit b175dc9

Please sign in to comment.