fiji_module_run_script
Run Groovy script text directly in Fiji without writing a file, passing named inputs and returning results or a job id. Declare parameters and outputs with #@ lines for atlas workflows.
Instructions
Run a script given as text (Groovy by default) as fiji_module_run runs a script file: same inputs, result, job id and status, nothing written to disk. For what no command does: search the commands first. Declare what it needs with #@ lines, e.g. '#@ ImagePlus image' (an object input with one live instance is bound to it) or '#@ CommandService command', and what it returns with '#@output String result'. Recorded in fiji_module_script with its code; '#@script(record="false")' leaves out a script that only looks. Write Groovy, as ABBA's docs and examples: 'python' here is Jython 2.7, not CPython. Read scripting/groovy-steps.md before the first script: a line starting with #@ is a parameter even inside a string. The ABBA window is a ch.epfl.biop.atlas.aligner.gui.bdv.BdvMultislicePositionerView, the session a ch.epfl.biop.atlas.aligner.MultiSlicePositioner (guides/window.md, scripting/).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | the script, with its #@ parameters | |
| inputs | No | JSON object of input values by name, as for fiji_module_run | |
| language | No | groovy (default, recommended), or another language name or file extension; 'python' is Jython 2.7, not CPython: no numpy, no pip packages | |
| wait_seconds | No | seconds to wait for the result before returning the job id (default 30, at most 40: clients abort requests after about 60 s; follow a longer run with fiji_module_status) |