From bfa1ccac2231ab274fe2977ced4335b1c0d22c67 Mon Sep 17 00:00:00 2001 From: Schneider Leo <leo.schneider@etu.ec-lyon.fr> Date: Wed, 11 Jun 2025 17:23:15 +0200 Subject: [PATCH] fix : absolute path for image dataset and DLLs --- image_processing/build_dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image_processing/build_dataset.py b/image_processing/build_dataset.py index 19288df..a21e9e8 100644 --- a/image_processing/build_dataset.py +++ b/image_processing/build_dataset.py @@ -191,7 +191,7 @@ def create_dataset(bin_mz=1,tolerance=0.005,noise=1000,apex='apex',suffix='-d200 if not os.path.isfile(directory_path_png + "/" + name + '_' + analyse + '.png'): if apex == 'apex': try : - mat = build_image_ms1_wiff_charge_filtered_apex_only(path, bin_mz=bin_mz,tolerance=tolerance,noise=noise) + mat = build_image_ms1_wiff_charge_filtered_apex_only(os.path.join(base_path,path), bin_mz=bin_mz,tolerance=tolerance,noise=noise) mpimg.imsave(directory_path_png + "/" + name + '_' + analyse + '.png', mat) np.save(directory_path_npy + "/" + name + '_' + analyse + '.npy', mat) print('image create') -- GitLab