Skip to content

Add parameter type information to ops.descriptions() output #135

@elevans

Description

@elevans

Take this minimal example where we ask for information on the "math.subtract" op in Jython from the Fiji script editor:

# get op environoment
from org.scijava.ops.api import OpEnvironment
ops = OpEnvironment.getEnvironment()

print(ops.descriptions("math.subtract"))

This produces the following output:

[math.subtract(
	 Inputs:
		I1 input1
		I2 input2
	 Containers (I/O):
		O result
)
, math.sub(
	 Inputs:
		java.lang.Number input1
		java.lang.Number input2
	 Outputs:
		java.lang.Double output1
)
Aliases: [math.subtract]
]

What types are the input (I1 and I2) and output (O)? After talking to Gabe, I learned they are RealTypes. The output from ops.descriptions() does not indicate that these are RealTypes. How can we display the parameter types here?

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions