From 26cfab0ebd5584cb029f1c5703ba051f4a078a42 Mon Sep 17 00:00:00 2001 From: "Alinson S. Xavier" Date: Fri, 31 May 2024 11:16:29 -0500 Subject: [PATCH] h5: Store values using float64 --- miplearn/h5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miplearn/h5.py b/miplearn/h5.py index 0bc09e0..c86ff17 100644 --- a/miplearn/h5.py +++ b/miplearn/h5.py @@ -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")