Skip to content

Commit 308fcef

Browse files
committed
Cast back to float64 when reading from the HDF5 file
1 parent c49c2a3 commit 308fcef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yt/frontends/dyablo/data_structures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def fill(self, fields, selector):
302302
field_path = f"/{fname}"
303303
if field_path in f:
304304
# Apply cell-level mask
305-
data[ftype, fname] = f[field_path][:][indices]
305+
data[ftype, fname] = f[field_path][:][indices].astype("float64")
306306
else:
307307
raise KeyError(
308308
f"Field {field_path} not found in HDF5 file {self.ds._hydro_filename}"

0 commit comments

Comments
 (0)