# HG changeset patch # User rv43 # Date 1679421377 0 # Node ID 7d9cf7592ad10ef0081b3f724e455cf98d20d5fb # Parent dfe7105739fa054bd2198d4fd88834acd5ed8b7f planemo upload for repository https://github.com/rolfverberg/galaxytools commit f8c4bdb31c20c468045ad5e6eb255a293244bc6c-dirty diff -r dfe7105739fa -r 7d9cf7592ad1 tomo_reduce.xml --- a/tomo_reduce.xml Tue Mar 21 17:45:21 2023 +0000 +++ b/tomo_reduce.xml Tue Mar 21 17:56:17 2023 +0000 @@ -26,8 +26,8 @@ - - + + diff -r dfe7105739fa -r 7d9cf7592ad1 workflow/run_tomo.py --- a/workflow/run_tomo.py Tue Mar 21 17:45:21 2023 +0000 +++ b/workflow/run_tomo.py Tue Mar 21 17:56:17 2023 +0000 @@ -988,7 +988,12 @@ if self.galaxy_flag: if img_x_bounds is None: img_x_bounds = (0, first_image.shape[0]) - elif not is_index_range(img_x_bounds, ge=0, le=first_image.shape[0]): + elif is_int_pair(img_x_bounds, ge=-1, le=first_image.shape[0]): + if img_x_bounds[0] == -1: + img_x_bounds[0] = 0 + if img_x_bounds[1] == -1: + img_x_bounds[1] = first_image.shape[0] + if is_index_range(img_x_bounds, ge=0, le=first_image.shape[0]): raise ValueError(f'Invalid parameter img_x_bounds ({img_x_bounds})') else: quick_imshow(first_image, title=title)