Skip to content

Commit

Permalink
update type checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotan committed Nov 5, 2024
1 parent 6f29232 commit 366fcb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nxstools/nxsfileinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ def overwrite(self, metadata, cmap=None, clist=None, cmapfield=None):
elif not isinstance(parent[tg], list):
parent[tg] = [parent[tg]]
if action.lower() in ["extend", "e"] and \
isinstance(md, list):
type(md).__name__ in ["list", "ndarray"]:
parent[tg].extend(md)
else:
parent[tg].append(md)
Expand Down

0 comments on commit 366fcb9

Please sign in to comment.