Skip to content

Commit 1ce34d8

Browse files
authored
TermSet get attribute replacement (#909)
1 parent bc10594 commit 1ce34d8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# HDMF Changelog
22

3+
## HDMF 3.7.1 (Upcoming)
4+
5+
### Bug fixes
6+
- Fixed bug on `add_ref_term_set` in which attributes that were not subscribtable returned an error. @mavaylon1 [#909](https://github.com/hdmf-dev/hdmf/pull/909)
7+
38
## HDMF 3.7.0 (July 10, 2023)
49

510
### New features and minor improvements
@@ -17,7 +22,7 @@
1722
### Documentation and tutorial enhancements:
1823
- Added tutorial for the new `TermSet` class @mavaylon1 [#880](https://github.com/hdmf-dev/hdmf/pull/880)
1924

20-
## Bug fixes
25+
### Bug fixes
2126
- Fixed CI testing of minimum installation requirements, and removed some gallery tests run on each PR. @rly
2227
[#877](https://github.com/hdmf-dev/hdmf/pull/877)
2328
- Fixed reporting of version when installed using conda. @rly [#890](https://github.com/hdmf-dev/hdmf/pull/890)

src/hdmf/common/resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def add_ref_term_set(self, **kwargs):
453453
if attribute is None:
454454
data_object = container
455455
else:
456-
data_object = container[attribute]
456+
data_object = getattr(container, attribute)
457457
if isinstance(data_object, (Data, DataIO)):
458458
data = data_object.data
459459
elif isinstance(data_object, (list, np.ndarray)):

0 commit comments

Comments
 (0)