Mercurial > repos > rv43 > chess_tomo
comparison workflow/run_tomo.py @ 27:7d9cf7592ad1 draft
planemo upload for repository https://github.com/rolfverberg/galaxytools commit f8c4bdb31c20c468045ad5e6eb255a293244bc6c-dirty
| author | rv43 |
|---|---|
| date | Tue, 21 Mar 2023 17:56:17 +0000 |
| parents | 0891477bcb16 |
| children | 562fc79de827 |
comparison
equal
deleted
inserted
replaced
| 26:dfe7105739fa | 27:7d9cf7592ad1 |
|---|---|
| 986 x_sum_min = x_sum.min() | 986 x_sum_min = x_sum.min() |
| 987 x_sum_max = x_sum.max() | 987 x_sum_max = x_sum.max() |
| 988 if self.galaxy_flag: | 988 if self.galaxy_flag: |
| 989 if img_x_bounds is None: | 989 if img_x_bounds is None: |
| 990 img_x_bounds = (0, first_image.shape[0]) | 990 img_x_bounds = (0, first_image.shape[0]) |
| 991 elif not is_index_range(img_x_bounds, ge=0, 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: | |
| 993 img_x_bounds[0] = 0 | |
| 994 if img_x_bounds[1] == -1: | |
| 995 img_x_bounds[1] = first_image.shape[0] | |
| 996 if is_index_range(img_x_bounds, ge=0, le=first_image.shape[0]): | |
| 992 raise ValueError(f'Invalid parameter img_x_bounds ({img_x_bounds})') | 997 raise ValueError(f'Invalid parameter img_x_bounds ({img_x_bounds})') |
| 993 else: | 998 else: |
| 994 quick_imshow(first_image, title=title) | 999 quick_imshow(first_image, title=title) |
| 995 print('Select vertical data reduction range from first tomography image') | 1000 print('Select vertical data reduction range from first tomography image') |
| 996 img_x_bounds = select_image_bounds(first_image, 0, title=title) | 1001 img_x_bounds = select_image_bounds(first_image, 0, title=title) |
