Skip to content
Snippets Groups Projects
Commit 7d354346 authored by Gröne, Tjark Leon Raphael's avatar Gröne, Tjark Leon Raphael
Browse files

Update file maxwell_integrate_to_h5.py

parent d8c78c35
Branches
No related tags found
No related merge requests found
......@@ -137,9 +137,9 @@ def integrate_ims_in_dir(path_im, path_int, dtype_im=".tif", dtype_int=".dat"):
for result in results_data:
filename_key = os.path.basename(result["filename"])
hdf_store.put(f"entry/data/{filename_key}/q", pd.Series(result["q"]), format='table')
hdf_store.put(f"entry/data/{filename_key}/I", pd.Series(result["I"]), format='table')
hdf_store.put(f"entry/data/{filename_key}/dI", pd.Series(result["dI"]), format='table')
hdf_store.put(f"entry/data/{filename_key}/q", pd.Series(np.array(result["q"], dtype=float)), format='table')
hdf_store.put(f"entry/data/{filename_key}/I", pd.Series(np.array(result["I"], dtype=float)), format='table')
hdf_store.put(f"entry/data/{filename_key}/dI", pd.Series(np.array(result["dI"], dtype=float)), format='table')
print(f"Results for subdirectory {subdir_name} saved to CSV and HDF5 files using Nexus conventions.")
del results_df
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment