Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 committed Jan 29, 2024
1 parent d5d6383 commit 9563411
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hdmf/common/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -1101,6 +1101,9 @@ def __get_selection_as_df(self, coldata):
id_index = coldata.pop('id')
df_input = OrderedDict()
for k in coldata: # for each column
for item in coldata[k]:
if type(item) == TermSetWrapper:
item = item.value
if isinstance(coldata[k], np.ndarray) and coldata[k].ndim > 1:
df_input[k] = list(coldata[k]) # convert multi-dim array to list of inner arrays
elif isinstance(coldata[k], pd.DataFrame):
Expand Down

0 comments on commit 9563411

Please sign in to comment.