Skip to content

Commit

Permalink
Minimum Support for Appending References in Hdmf-Zarr (#1157)
Browse files Browse the repository at this point in the history
* Minimum Support

* Update CHANGELOG.md
  • Loading branch information
mavaylon1 authored Jul 31, 2024
1 parent 50aad2f commit a98e5e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
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

0 comments on commit a98e5e9

Please sign in to comment.