diff --git a/webgeodyn/inout/pygeodyn_hdf5.py b/webgeodyn/inout/pygeodyn_hdf5.py index b59145227b6bfcc3c920dbcf79050280687286b8..b05792d93123c84ee8ac4792ad77ed2263d210e4 100644 --- a/webgeodyn/inout/pygeodyn_hdf5.py +++ b/webgeodyn/inout/pygeodyn_hdf5.py @@ -33,9 +33,10 @@ def load(dataDirectory, dataModel, keepRealisations, state_type='analysed'): with h5py.File(hdf_filename) as hdf_file: computed_data = hdf_file[state_type] - times = np.array(computed_data['times'])[firstpoint:] + times = np.array(computed_data['times'], dtype="float64")[firstpoint:] for measureName, measureData in computed_data.items(): + measureData = np.float64(measureData) # Convert to float64 if measureName not in measures_to_load: continue else: