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.

Changes between Initial Version and Version 1 of Ticket #3922


Ignore:
Timestamp:
03/21/11 09:55:01 (13 years ago)
Author:
wmoore
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3922

    • Property Priority changed from minor to major
    • Property Sprint changed from to 2011-04-07 (9)
  • Ticket #3922 – Description

    initial v1  
    77Basically I want a script that is able to get the ImageIds either by: 
    88 
    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, 
    1111 
    1212From this I want for 1) all the imageIDs of the selected images, and for 2) all the ImageIDs belonging to the datasets selected. 
    1313From what I have seen the Thumbnail_Figure.py does exactly what I want. 
     14 
     15Script code example that we should support 
     16{{{ 
     17dataTypes = [rstring('Dataset'),rstring('Image')] 
     18... 
     19scripts.String("Data_Type", optional=False, description="The data type.", values=dataTypes, default="Image"), 
     20scripts.List("IDs", optional=False, description="List of Dataset IDs or Image IDs").ofType(rlong(0)), 
     21... 
     22scriptParams = {} 
     23for key in client.getInputKeys(): 
     24    if client.getInput(key): 
     25        scriptParams[key] = unwrap(client.getInput(key)) 
     26 
     27dataType = scriptParams["Data_Type"] 
     28ids = scriptParams["IDs"] 
     29images = 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.)

We're Hiring!