Mercurial > repos > rv43 > chess_tomo
diff workflow/run_tomo.py @ 5:543dba81eb15 draft
planemo upload for repository https://github.com/rolfverberg/galaxytools commit f8c4bdb31c20c468045ad5e6eb255a293244bc6c-dirty
| author | rv43 |
|---|---|
| date | Mon, 20 Mar 2023 18:54:48 +0000 |
| parents | 9aa288729b9a |
| children | 05335876d167 |
line wrap: on
line diff
--- a/workflow/run_tomo.py Mon Mar 20 18:44:23 2023 +0000 +++ b/workflow/run_tomo.py Mon Mar 20 18:54:48 2023 +0000 @@ -873,7 +873,10 @@ # Select image bounds title = f'tomography image at theta={round(theta, 2)+0}' - if (img_x_bounds is not None and not is_index_range(img_x_bounds, ge=0, + if img_x_bounds is not None: + if is_int_pair(img_x_bounds)i and img_x_bounds[0] == -1 and img_x_bounds[1] == -1 + img_x_bounds = None + elif not is_index_range(img_x_bounds, ge=0, le=first_image.shape[0])): raise ValueError(f'Invalid parameter img_x_bounds ({img_x_bounds})') if nxentry.instrument.source.attrs['station'] in ('id1a3', 'id3a'):
