Mercurial > repos > imgteam > imagej2_bunwarpj_compose_raw_elastic
comparison imagej2_create_image_jython_script.py @ 2:4deffc9540a3 draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/image_processing/imagej2 commit 57a0433defa3cbc37ab34fbb0ebcfaeb680db8d5
| author | imgteam |
|---|---|
| date | Sun, 05 Nov 2023 14:23:45 +0000 |
| parents | 8d357579e407 |
| children |
comparison
equal
deleted
inserted
replaced
| 1:8d357579e407 | 2:4deffc9540a3 |
|---|---|
| 6 # provide support for argparse. | 6 # provide support for argparse. |
| 7 title = sys.argv[-6] | 7 title = sys.argv[-6] |
| 8 width = int(sys.argv[-5]) | 8 width = int(sys.argv[-5]) |
| 9 height = int(sys.argv[-4]) | 9 height = int(sys.argv[-4]) |
| 10 depth = int(sys.argv[-3]) | 10 depth = int(sys.argv[-3]) |
| 11 type = sys.argv[-2].replace('_', ' ') | 11 type = sys.argv[-2].replace("_", " ") |
| 12 tmp_image_path = sys.argv[-1] | 12 tmp_image_path = sys.argv[-1] |
| 13 | 13 |
| 14 imp = IJ.newImage(title, type, width, height, depth) | 14 imp = IJ.newImage(title, type, width, height, depth) |
| 15 IJ.save(imp, "%s" % tmp_image_path) | 15 IJ.save(imp, "%s" % tmp_image_path) |
