h5: Store values using float64

dev
Alinson S. Xavier 1 year ago
parent 52ed34784d
commit 26cfab0ebd
Signed by: isoron
GPG Key ID: 0DA8E4B9E1109DCA

@ -68,7 +68,7 @@ class H5File:
return
self._assert_is_array(value)
if value.dtype.kind == "f":
value = value.astype("float32")
value = value.astype("float64")
if key in self.file:
del self.file[key]
return self.file.create_dataset(key, data=value, compression="gzip")

Loading…
Cancel
Save