Skip to content

Commit

Permalink
Expose cache_spec option in NWBHDF5IO.export (#1959)
Browse files Browse the repository at this point in the history
* Expose cache_spec option in NWBHDF5IO.export

* Update changelog
  • Loading branch information
rly authored Sep 5, 2024
1 parent 71ef8e2 commit 44ef205
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
### Bug fixes
- Fixed `can_read` method to return False if no nwbfile version can be found @stephprince [#1934](https://github.com/NeurodataWithoutBorders/pynwb/pull/1934)
- Changed `epoch_tags` to be a NWBFile property instead of constructor argument. @stephprince [#1935](https://github.com/NeurodataWithoutBorders/pynwb/pull/1935)
- Exposed option to not cache the spec in `NWBHDF5IO.export`. @rly [#1959](https://github.com/NeurodataWithoutBorders/pynwb/pull/1959)

## PyNWB 2.8.1 (July 3, 2024)

Expand Down
4 changes: 3 additions & 1 deletion src/pynwb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,9 @@ def read(self, **kwargs):
'default': None},
{'name': 'write_args', 'type': dict,
'doc': 'arguments to pass to :py:meth:`~hdmf.backends.io.HDMFIO.write_builder`',
'default': None})
'default': None},
{'name': 'cache_spec', 'type': bool, 'doc': 'whether to cache the specification to file',
'default': True})
def export(self, **kwargs):
"""
Export an NWB file to a new NWB file using the HDF5 backend.
Expand Down

0 comments on commit 44ef205

Please sign in to comment.