Skip to content
Snippets Groups Projects

F h5 cfood

Merged Henrik tom Wörden requested to merge f-h5-cfood into dev
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
+ 3
2
@@ -98,7 +98,8 @@ def h5_attr_to_property(val):
if(hasattr(val, 'ndim')):
if not isinstance(val, np.ndarray) and val.ndim != 0:
print(val, val.ndim)
raise Exception("Implementation assumes that only np.arrays have ndim.")
raise Exception(
"Implementation assumes that only np.arrays have ndim.")
return val, dtype
@@ -259,7 +260,7 @@ class H5CFood(AbstractFileCFood):
key, val, dtype)
if treated_k is not None:
rec.add_property(name=treated_k, value=treated_v,
datatype=treated_dtype)
datatype=treated_dtype)
return rec
Loading