From f2504e3a8a4909fc9dded2885aa861a618243759 Mon Sep 17 00:00:00 2001 From: mavaylon1 Date: Wed, 27 Sep 2023 19:28:01 -0700 Subject: [PATCH] validation changes --- src/hdmf/common/table.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hdmf/common/table.py b/src/hdmf/common/table.py index 2a01f1143..e174564af 100644 --- a/src/hdmf/common/table.py +++ b/src/hdmf/common/table.py @@ -16,6 +16,7 @@ from ..container import Container, Data from ..data_utils import DataIO, AbstractDataChunkIterator from ..utils import docval, getargs, ExtenderMeta, popargs, pystr, AllowPositional +from ..term_set import TermSetWrapper @register_class('VectorData') @@ -593,8 +594,8 @@ def add_row(self, **kwargs): if isinstance(col, VectorIndex): continue else: - if col.term_set is not None: - if col.term_set.validate(term=data[colname]): + if isinstance(col.data, TermSetWrapper): + if col.data.termset.validate(term=data[colname]): continue else: bad_data.append(data[colname])