Skip to content
Snippets Groups Projects
Commit 94bb56ce authored by Tomasz Baka's avatar Tomasz Baka Committed by Colm Talbot
Browse files

BUGFIX: saving list with None to hdf5

parent 2f53006d
No related branches found
No related tags found
No related merge requests found
......@@ -283,7 +283,7 @@ def encode_for_hdf5(key, item):
output = item
elif np.issubdtype(item_array.dtype, np.number):
output = np.array(item)
elif issubclass(item_array.dtype.type, str) or item[0] is None:
elif issubclass(item_array.dtype.type, str) or None in item:
output = list()
for value in item:
if isinstance(value, str):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment