comparison workflow/run_tomo.py @ 28:562fc79de827 draft

planemo upload for repository https://github.com/rolfverberg/galaxytools commit f8c4bdb31c20c468045ad5e6eb255a293244bc6c-dirty
author rv43
date Tue, 21 Mar 2023 17:59:41 +0000
parents 7d9cf7592ad1
children 551d1ea2416d
comparison
equal deleted inserted replaced
27:7d9cf7592ad1 28:562fc79de827
991 elif is_int_pair(img_x_bounds, ge=-1, le=first_image.shape[0]): 991 elif is_int_pair(img_x_bounds, ge=-1, le=first_image.shape[0]):
992 if img_x_bounds[0] == -1: 992 if img_x_bounds[0] == -1:
993 img_x_bounds[0] = 0 993 img_x_bounds[0] = 0
994 if img_x_bounds[1] == -1: 994 if img_x_bounds[1] == -1:
995 img_x_bounds[1] = first_image.shape[0] 995 img_x_bounds[1] = first_image.shape[0]
996 if is_index_range(img_x_bounds, ge=0, le=first_image.shape[0]): 996 if not is_index_range(img_x_bounds, ge=0, le=first_image.shape[0]):
997 raise ValueError(f'Invalid parameter img_x_bounds ({img_x_bounds})') 997 raise ValueError(f'Invalid parameter img_x_bounds ({img_x_bounds})')
998 else: 998 else:
999 quick_imshow(first_image, title=title) 999 quick_imshow(first_image, title=title)
1000 print('Select vertical data reduction range from first tomography image') 1000 print('Select vertical data reduction range from first tomography image')
1001 img_x_bounds = select_image_bounds(first_image, 0, title=title) 1001 img_x_bounds = select_image_bounds(first_image, 0, title=title)