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

Minimum Support for Appending References in Hdmf-Zarr #1157

Merged
merged 2 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# HDMF Changelog

## HDMF 3.14.4 (Upcoming)

### Enhancements
- Added support to append to a dataset of references for HDMF-Zarr. @mavaylon1 [#1157](https://github.com/hdmf-dev/hdmf/pull/1157)

## HDMF 3.14.3 (July 29, 2024)

### Enhancements
Expand Down
3 changes: 2 additions & 1 deletion src/hdmf/data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
from .utils import docval, getargs, popargs, docval_macro, get_data_shape

def append_data(data, arg):
if isinstance(data, (list, DataIO)):
from hdmf.backends.hdf5.h5_utils import HDMFDataset
if isinstance(data, (list, DataIO, HDMFDataset)):
data.append(arg)
return data
elif type(data).__name__ == 'TermSetWrapper': # circular import
Expand Down
Loading