public interface IScript extends Ice.Object, _IScriptOperations, _IScriptOperationsNC, ServiceInterface
sf = client.createSession()
svc = sf.getScriptService()
scripts = svc.getScripts()
if len(scripts) >= 1:
script_id = svc.keys()\[-1]
else:
script_id = svc.uploadScript('/test/my_script.py', SCRIPT_TEXT)
params = svc.getParams(script_id)
# You will need to parse the params to create the proper input
inputs = {}
# The last parameter is how long to wait as an RInt
proc = svc.runScript(script_id, inputs, None)
try:
cb = omero.scripts.ProcessCallbackI(client, proc)
while not cb.block(1000): # ms.
pass
cb.close()
rv = proc.getResults(0)
finally:
proc.close(False)
See OMERO.scripts for more information.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ice_staticId |
static long |
serialVersionUID |
canRunScript_async, deleteScript_async, editScript_async, getParams_async, getScriptID_async, getScripts_async, getScriptsByMimetype_async, getScriptText_async, getScriptWithDetails_async, getUserScripts_async, runScript_async, uploadOfficialScript_async, uploadScript_async, validateScript_async
canRunScript_async, deleteScript_async, editScript_async, getParams_async, getScriptID_async, getScripts_async, getScriptsByMimetype_async, getScriptText_async, getScriptWithDetails_async, getUserScripts_async, runScript_async, uploadOfficialScript_async, uploadScript_async, validateScript_async
static final java.lang.String ice_staticId
static final long serialVersionUID