Skip to content

Commit 44ef205

Browse files
authored
Expose cache_spec option in NWBHDF5IO.export (#1959)
* Expose cache_spec option in NWBHDF5IO.export * Update changelog
1 parent 71ef8e2 commit 44ef205

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
### Bug fixes
1313
- Fixed `can_read` method to return False if no nwbfile version can be found @stephprince [#1934](https://github.com/NeurodataWithoutBorders/pynwb/pull/1934)
1414
- Changed `epoch_tags` to be a NWBFile property instead of constructor argument. @stephprince [#1935](https://github.com/NeurodataWithoutBorders/pynwb/pull/1935)
15+
- Exposed option to not cache the spec in `NWBHDF5IO.export`. @rly [#1959](https://github.com/NeurodataWithoutBorders/pynwb/pull/1959)
1516

1617
## PyNWB 2.8.1 (July 3, 2024)
1718

src/pynwb/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,9 @@ def read(self, **kwargs):
368368
'default': None},
369369
{'name': 'write_args', 'type': dict,
370370
'doc': 'arguments to pass to :py:meth:`~hdmf.backends.io.HDMFIO.write_builder`',
371-
'default': None})
371+
'default': None},
372+
{'name': 'cache_spec', 'type': bool, 'doc': 'whether to cache the specification to file',
373+
'default': True})
372374
def export(self, **kwargs):
373375
"""
374376
Export an NWB file to a new NWB file using the HDF5 backend.

0 commit comments

Comments
 (0)