[vistrails-dev] Best way to specify module port defaults.

Colin Talbert talbertc at usgs.gov
Wed Jan 18 14:52:43 EST 2012


Hello All,
        What's the best way to specify module port default values?  I'm 
using the code below.  In VisTrails 1.7 when the user moved one of these 
ports down to change the value the default value was displayed in the 
input box.  In 2.0 the data entry box is blank and the user doesn't know 
what the default value was/is.  Is there a new or better means of 
specifying a default so it's visible to a user?

    _input_ports = [('mdsFile', '(gov.usgs.sahm:MergedDataSet:Other)'),
                    ('makeBinMap', 
'(edu.utah.sci.vistrails.basic:Boolean)', {'defaults':str(['True']), 
'optional':False}),
                    ('makeProbabilityMap', 
'(edu.utah.sci.vistrails.basic:Boolean)', {'defaults':str(['True']), 
'optional':False}),
                    ('makeMESMap', 
'(edu.utah.sci.vistrails.basic:Boolean)', {'defaults':str(['False']), 
'optional':False}),
                    ('ThresholdOptimizationMethod', 
'(edu.utah.sci.vistrails.basic:Integer)', {'defaults':str(['2']), 
'optional':False})


Thanks,
Colin


Colin Talbert
GIS Specialist
US Geological Survey - Fort Collins Science Center
2150 Centre Ave. Bldg. C
Fort Collins, CO 80526

(970) 226-9425
talbertc at usgs.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vistrails.org/pipermail/vistrails-dev/attachments/20120118/d4f11a3f/attachment.html>


More information about the vistrails-dev mailing list