Mercurial > repos > imgteam > scale_image
comparison scale_image.py @ 1:f0de74fc251d draft
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/scale_image/ commit aeb095d3a95eff1cda6127a8dd757552c0405a11
| author | imgteam |
|---|---|
| date | Thu, 28 Mar 2019 13:01:52 -0400 |
| parents | 8b187dfeb541 |
| children | ac497ba6819d |
comparison
equal
deleted
inserted
replaced
| 0:8b187dfeb541 | 1:f0de74fc251d |
|---|---|
| 20 elif order == 2: | 20 elif order == 2: |
| 21 interp = 'bicubic' | 21 interp = 'bicubic' |
| 22 | 22 |
| 23 if ',' in scale: | 23 if ',' in scale: |
| 24 scale = scale[1:-1].split(',') | 24 scale = scale[1:-1].split(',') |
| 25 scale.reverse() | |
| 26 scale = [int(i) for i in scale] | 25 scale = [int(i) for i in scale] |
| 27 elif '.' in scale: | 26 elif '.' in scale: |
| 28 scale = float(scale) | 27 scale = float(scale) |
| 29 else: | 28 else: |
| 30 scale = int(scale) | 29 scale = int(scale) |
