Mercurial > repos > imgteam > scale_image
comparison scale_image.py @ 1:3e4231ed875e 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:02:18 -0400 |
parents | c4c76f1ebad2 |
children | f3c05a734dd1 |
comparison
equal
deleted
inserted
replaced
0:c4c76f1ebad2 | 1:3e4231ed875e |
---|---|
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) |