Skip to content
Snippets Groups Projects
Commit 531bc979 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 5b7691fd
No related branches found
No related tags found
No related merge requests found
...@@ -75,4 +75,9 @@ def hdf5_to_npz_csv(hdf5_filename, output_file_prefix, chunk_size=10000): ...@@ -75,4 +75,9 @@ def hdf5_to_npz_csv(hdf5_filename, output_file_prefix, chunk_size=10000):
df = pd.DataFrame(combined_dict) df = pd.DataFrame(combined_dict)
# Write the DataFrame to a file # Write the DataFrame to a file
df.to_csv(f"{output_file_prefix}_combined.csv", index=False) df.to_csv(f"{output_file_prefix}_combined.csv", index=False)
\ No newline at end of file
# Write the combined_dict to a new HDF5 file
with h5py.File(f"{output_file_prefix}_combined.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