comparison imagej2_math_jython_script.py @ 3:1f92b1da556b draft default tip

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/image_processing/imagej2 commit 8f49f3c66b5a1de99ec15e65c2519a56792f1d56
author imgteam
date Wed, 25 Sep 2024 16:04:54 +0000
parents 056e74fbbf6c
children
comparison
equal deleted inserted replaced
2:056e74fbbf6c 3:1f92b1da556b
1 import sys 1 import sys
2 2
3 from ij import IJ 3 from ij import IJ
4 4
5 # Fiji Jython interpreter implements Python 2.5 which does not 5 # Fiji Jython interpreter implements Python 2.5 which does not
6 # provide support for argparse. 6 # provide support for argparse.\
7 error_log = sys.argv[-8]
8 input_file = sys.argv[-7] 7 input_file = sys.argv[-7]
9 operation = sys.argv[-6] 8 operation = sys.argv[-6]
10 expression = sys.argv[-5] 9 expression = sys.argv[-5]
11 if sys.argv[-4] in [None, "None"]: 10 if sys.argv[-4] in [None, "None"]:
12 bin_constant = None 11 bin_constant = None
17 else: 16 else:
18 float_constant = float(sys.argv[-3]) 17 float_constant = float(sys.argv[-3])
19 tmp_output_path = sys.argv[-2] 18 tmp_output_path = sys.argv[-2]
20 output_datatype = sys.argv[-1] 19 output_datatype = sys.argv[-1]
21 20
22 print("\nerror_log: %s\n" % str(error_log))
23 print("\ninput_file: %s\n" % str(input_file)) 21 print("\ninput_file: %s\n" % str(input_file))
24 print("\noperation: %s\n" % str(operation)) 22 print("\noperation: %s\n" % str(operation))
25 print("\nexpression: %s\n" % str(expression)) 23 print("\nexpression: %s\n" % str(expression))
26 print("\nbin_constant: %s\n" % str(bin_constant)) 24 print("\nbin_constant: %s\n" % str(bin_constant))
27 print("\nfloat_constant: %s\n" % str(float_constant)) 25 print("\nfloat_constant: %s\n" % str(float_constant))