Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
- Timestamp:
-
03/21/11 09:55:01 (13 years ago)
- Author:
-
wmoore
- Comment:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
-
-
Property
Priority
changed from
minor
to
major
-
Property
Sprint
changed from
to
2011-04-07 (9)
-
initial
|
v1
|
|
7 | 7 | Basically I want a script that is able to get the ImageIds either by: |
8 | 8 | |
9 | | 1) A user selects multiple images in a dataset then runs the script, |
10 | | 2) A user selects multiple datasets then runs the script, |
| 9 | - A user selects multiple images in a dataset then runs the script, |
| 10 | - A user selects multiple datasets then runs the script, |
11 | 11 | |
12 | 12 | From this I want for 1) all the imageIDs of the selected images, and for 2) all the ImageIDs belonging to the datasets selected. |
13 | 13 | From what I have seen the Thumbnail_Figure.py does exactly what I want. |
| 14 | |
| 15 | Script code example that we should support |
| 16 | {{{ |
| 17 | dataTypes = [rstring('Dataset'),rstring('Image')] |
| 18 | ... |
| 19 | scripts.String("Data_Type", optional=False, description="The data type.", values=dataTypes, default="Image"), |
| 20 | scripts.List("IDs", optional=False, description="List of Dataset IDs or Image IDs").ofType(rlong(0)), |
| 21 | ... |
| 22 | scriptParams = {} |
| 23 | for key in client.getInputKeys(): |
| 24 | if client.getInput(key): |
| 25 | scriptParams[key] = unwrap(client.getInput(key)) |
| 26 | |
| 27 | dataType = scriptParams["Data_Type"] |
| 28 | ids = scriptParams["IDs"] |
| 29 | images = containerService.getImages(dataType, ids, None) |
| 30 | }}} |
1.3.13-PRO © 2008-2011
Agilo Software all
rights reserved
(this page was served in: 0.17079 sec.)