Fix bug in savedata
List of arrays of different shape were not saved correctly.
@@ -286,6 +286,10 @@ def save_list_as_array(list_obj,grp_target,compress_float=False):
if type(list_obj[nn])!=type0:
SaveAsArray=False
break
+ if type(list_obj[nn])==ndarray:
+ if list_obj[0].shape != list_obj[nn].shape:
+ SaveAsArray=False
+ break
if SaveAsArray:
if '_as_array' in grp_target:
del grp_target['_as_array']
