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

fix : absolute path for image dataset and DLLs

parent bfa1ccac
No related branches found
No related tags found
No related merge requests found
......@@ -190,13 +190,13 @@ def create_dataset(bin_mz=1,tolerance=0.005,noise=1000,apex='apex',suffix='-d200
os.makedirs(directory_path_npy)
if not os.path.isfile(directory_path_png + "/" + name + '_' + analyse + '.png'):
if apex == 'apex':
try :
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')
except:
print(name +' couldnt be loaded')
# try :
mat = build_image_ms1_wiff_charge_filtered_apex_only(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')
# except:
# print(name +' couldnt be loaded')
else :
try :
mat = build_image_ms1_wiff_charge_filtered(path, bin_mz=bin_mz,tolerance=tolerance,noise=noise)
......
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