Skip to content

Commit

Permalink
validation changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 committed Sep 28, 2023
1 parent 9a37ecf commit f2504e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/hdmf/common/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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])
Expand Down

0 comments on commit f2504e3

Please sign in to comment.