Skip to content
Snippets Groups Projects
Commit 36f87f53 authored by Francois Dall'Asta's avatar Francois Dall'Asta :speech_balloon:
Browse files

convert single to double precision hdf5 data

parent 37b7b7da
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment