Task #2335 (assigned)
Opened 14 years ago
Last modified 14 years ago
Scripting demo movies — at Version 9
Reported by: | wmoore | Owned by: | wmoore |
---|---|---|---|
Priority: | minor | Milestone: | OMERO-Beta4.2 |
Component: | General | Version: | n.a. |
Keywords: | n.a. | Cc: | |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | 2010-05-13 (9) |
Description (last modified by wmoore)
Scripting Service overview / use / writing style
- Idea is that you can add functionality to the server
- Image processing happens on the server
- Trusted vv User scripts (see other movies)
- Scripts menu -> choose...
- Combine_Images.py
- Can download/view script
- Show UI vv Parameter definitions.
- Script naming convention and script description
- Parameter types, description, defaults, min, max, options, optional
- Fill in parameters and Run the script
- Show Activities panel.
- Roi_Movie_Figure.py (maybe)
User Script-writing Movie
- Intro to Scripting Guide pages and links to API, examples etc.
- Use Insight to connect
- Download server cd dist
- Mention Ice (show .profile in nano)
- export ICE_CONFIG=etc/ice.config
- Start user processor: bin/omero -s host -u will script serve user
- Download Add_Description.py
- Upload to server bin/omero -s localhost -u demo script upload ../examples/ScriptingService/Edit_Descriptions.py
- List scripts bin/omero -s localhost -u root script list user
- Run script bin/omero -s localhost -u root script launch file=22 Dataset_ID=1
- Edit script print image.name.val
- Replace bin/omero -s localhost -u root script replace 23 script.py
- In Insight...
- Run script
- This script is available to other users in my collaborative group, but they need their own user processor.
Admin workflow
- Scripts will run directly on the server
- Available to all users and groups
- Scripting Guide pages...
- Scripting service API / adminWorkflow.py - can edit
- Supports upload/edit run list params
- Official scripts have Unique Path/name.py
- Download adminWorkflow.py to 'scripts' folder at root of /omero/util_scripts/ etc.
- Edit script - upload (replaces)
- Run from adminWorkflow or Insight.
Change History (9)
comment:1 Changed 14 years ago by wmoore
- Description modified (diff)
comment:2 Changed 14 years ago by wmoore
- Description modified (diff)
comment:3 Changed 14 years ago by wmoore
- Owner set to wmoore
comment:4 Changed 14 years ago by wmoore
- Status changed from new to assigned
comment:5 Changed 14 years ago by wmoore
comment:6 Changed 14 years ago by wmoore
- Description modified (diff)
comment:7 Changed 14 years ago by jmoore
- Sprint changed from 2010-04-30 (8) to 2010-05-13 (9)
comment:8 Changed 14 years ago by wmoore
- Description modified (diff)
- Summary changed from User scripting demo movie to Scripting demo movies
comment:9 Changed 14 years ago by wmoore
- Description modified (diff)
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
(In [6888]) Example script for demo movie. See #2335