Skip to content
Snippets Groups Projects
Commit 1a8d63a0 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 531bc979
No related branches found
No related tags found
No related merge requests found
......@@ -75,9 +75,9 @@ def hdf5_to_npz_csv(hdf5_filename, output_file_prefix, chunk_size=10000):
df = pd.DataFrame(combined_dict)
# Write the DataFrame to a file
df.to_csv(f"{output_file_prefix}_combined.csv", index=False)
df.to_csv(f"{output_file_prefix}_1D.csv", index=False)
# Write the combined_dict to a new HDF5 file
with h5py.File(f"{output_file_prefix}_combined.h5", 'w') as output_file:
with h5py.File(f"{output_file_prefix}_1D.h5", 'w') as output_file:
for key, data in combined_dict.items():
output_file.create_dataset(key, data=data)
\ No newline at end of file
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