Skip to content

Commit

Permalink
Fix adding elements in enumdata subclass
Browse files Browse the repository at this point in the history
  • Loading branch information
rly committed Apr 5, 2024
1 parent fcdc3e5 commit 683bf37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hdmf/common/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ def add_column(self, **kwargs): # noqa: C901
if col in self.__uninit_cols:
self.__uninit_cols.pop(col)

if col_cls is EnumData:
if issubclass(col_cls, EnumData):
columns.append(col.elements)
col.elements.parent = self

Expand Down

0 comments on commit 683bf37

Please sign in to comment.