From db3ee7517a406b557e63d778526a34f102fb07f1 Mon Sep 17 00:00:00 2001 From: frederick Date: Thu, 7 May 2026 09:10:46 +0100 Subject: [PATCH] bug fix: altering the path from which python is called --- e02/templates/mib2x-auto-virtual-images.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e02/templates/mib2x-auto-virtual-images.yaml b/e02/templates/mib2x-auto-virtual-images.yaml index de4f83a..1c19b65 100644 --- a/e02/templates/mib2x-auto-virtual-images.yaml +++ b/e02/templates/mib2x-auto-virtual-images.yaml @@ -181,8 +181,8 @@ spec: todo, checks = check_dataset(hdf5_files,hdf5_timestamps,[no_vir,no_dpc,no_par]) for item,x in enumerate(todo): - cmd_list.append('python /home/ruska/py4DSTEM_Virtual_Image.py --hdf5-path %s --disk-thrs-low %f --disk-thrs-up %f --virtual-images %s --dpc-images %s --plax %s --mask-path %s' %(hdf5_files[todo[item]],0.05,0.2,checks[0][todo[item]],checks[1][todo[item]],checks[2][todo[item]],"/home/ruska/29042024_12bitmask2.h5")) - logging.append('python /home/ruska/py4DSTEM_Virtual_Image.py --hdf5-path %s --disk-thrs-low %f --disk-thrs-up %f --virtual-images %s --dpc-images %s --plax %s --mask-path %s' %(hdf5_files[todo[item]],0.05,0.2,checks[0][todo[item]],checks[1][todo[item]],checks[2][todo[item]],"/home/ruska/29042024_12bitmask2.h5")) + cmd_list.append('/usr/bin/python /home/ruska/py4DSTEM_Virtual_Image.py --hdf5-path %s --disk-thrs-low %f --disk-thrs-up %f --virtual-images %s --dpc-images %s --plax %s --mask-path %s' %(hdf5_files[todo[item]],0.05,0.2,checks[0][todo[item]],checks[1][todo[item]],checks[2][todo[item]],"/home/ruska/29042024_12bitmask2.h5")) + logging.append('/usr/bin/python /home/ruska/py4DSTEM_Virtual_Image.py --hdf5-path %s --disk-thrs-low %f --disk-thrs-up %f --virtual-images %s --dpc-images %s --plax %s --mask-path %s' %(hdf5_files[todo[item]],0.05,0.2,checks[0][todo[item]],checks[1][todo[item]],checks[2][todo[item]],"/home/ruska/29042024_12bitmask2.h5")) #ToDo think about this printing in the context of an Error #this should be try statement