Skip to content
Snippets Groups Projects
Commit bfa1ccac authored by Schneider Leo's avatar Schneider Leo
Browse files

fix : absolute path for image dataset and DLLs

parent 0271a85f
No related branches found
No related tags found
No related merge requests found
...@@ -191,7 +191,7 @@ def create_dataset(bin_mz=1,tolerance=0.005,noise=1000,apex='apex',suffix='-d200 ...@@ -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 not os.path.isfile(directory_path_png + "/" + name + '_' + analyse + '.png'):
if apex == 'apex': if apex == 'apex':
try : 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) mpimg.imsave(directory_path_png + "/" + name + '_' + analyse + '.png', mat)
np.save(directory_path_npy + "/" + name + '_' + analyse + '.npy', mat) np.save(directory_path_npy + "/" + name + '_' + analyse + '.npy', mat)
print('image create') print('image create')
......
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