Changeset 5192 for branches


Ignore:
Timestamp:
Apr 5, 2015 10:48:26 PM (9 years ago)
Author:
mmh
Message:

fix job count for UQ dialog

Location:
branches/uq
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/uq/gui/scripts/numberentry.tcl

    r5166 r5192  
    4242# ----------------------------------------------------------------------
    4343itcl::body Rappture::NumberEntry::constructor {owner path args} {
    44     puts "NumberEntry '$path' '$args'"
    4544    set varname [lindex [split $path ()] end-1]
    4645    if {[catch {$owner isa Rappture::ControlOwner} valid] != 0 || !$valid} {
  • branches/uq/gui/scripts/probdisteditor.tcl

    r5189 r5192  
    200200# ----------------------------------------------------------------------
    201201itcl::body Rappture::ProbDistEditor::value {{newval ""}} {
    202     puts "PDE::value $newval"
     202    # puts "PDE::value $newval"
    203203
    204204    #FIXME: _value has numerical values _uvalue has value with units
     
    286286# ----------------------------------------------------------------------
    287287itcl::body Rappture::ProbDistEditor::mode {{newval ""}} {
    288     puts "PDE::mode mode=$newval min=$_umin max=$_umax units=$_units"
     288    # puts "PDE::mode mode=$newval min=$_umin max=$_umax units=$_units"
    289289
    290290    set modes {exact uniform gaussian custom}
     
    606606# ----------------------------------------------------------------------
    607607itcl::body Rappture::ProbDistEditor::_apply {op {widget ""}} {
    608     puts "PDE::_apply $op $widget"
     608    #puts "PDE::_apply $op $widget"
    609609    if {$op != "bindings"} {
    610610        # need this for value/finalize
  • branches/uq/gui/scripts/tempgauge.tcl

    r5029 r5192  
    7373
    7474    if {"" != $itk_option(-spectrum)} {
    75         puts "TemperatureGauge"
    7675        set color [$itk_option(-spectrum) get [value]]
    77         puts "TemperatureGauge: color=$color"
    7876        set frac [$itk_option(-spectrum) get -fraction [value]]
    7977    } else {
  • branches/uq/gui/scripts/uq.tcl

    r5182 r5192  
    44itcl::class Rappture::UQ {
    55
    6     constructor {varlist type uqargs} {
     6    constructor {varlist num type uqargs} {
    77        puts "Rappture::UQ constructor $varlist:$type:$uqargs"
    88        set _varlist $varlist
    99        set _type $type
    1010        set _args $uqargs
     11        set _num $num
    1112    }
    1213
     
    3031    private variable _num_pts {}
    3132    private variable _go ""
     33    private variable _num 0
    3234}
    3335
     
    118120
    119121itcl::body Rappture::UQ::num_runs {} {
    120     set numvars  [llength $_varlist]
    121     # puts "UQ num_runs $numvars $_type $_args"
     122    puts "varlist=$_varlist"
     123    set numvars  $_num
     124    puts "UQ num_runs $numvars $_type $_args"
    122125    if {![array exists _num_pts]} { _init_num_pts_array }
    123126    switch $_type {
  • branches/uq/lang/tcl/scripts/library.tcl

    r5191 r5192  
    690690# ----------------------------------------------------------------------
    691691itcl::body Rappture::LibraryObj::diff {libobj} {
    692 
    693     puts "Library DIFF $libobj"
    694692    set rlist ""
    695693
     
    698696    set otherv [Rappture::entities $libobj input]
    699697
    700     puts "thisv=$thisv\n"
    701     puts "otherv=$otherv\n"
    702 
    703698    # scan through values for this object, and compare against other one
    704699    foreach path $thisv {
    705       puts "path=$path"
    706700        set i [lsearch -exact $otherv $path]
    707701        if {$i < 0} {
     
    709703            lappend rlist - $path $raw ""
    710704        } else {
    711           puts "tvalue=[value $this $path]"
    712           puts "ovalue=[value $libobj $path]"
    713705            foreach {traw tnorm} [value $this $path] break
    714706            foreach {oraw onorm} [value $libobj $path] break
    715             puts "tnorm=$tnorm onorm=$onorm traw=$traw oraw=$oraw"
    716707            if {![string equal $tnorm $onorm]} {
    717708                lappend rlist c $path $traw $oraw
     
    726717        lappend rlist + $path "" $oraw
    727718    }
    728     puts "LDIFF returning $rlist"
    729719    return $rlist
    730720}
     
    749739# ----------------------------------------------------------------------
    750740itcl::body Rappture::LibraryObj::value {libobj path} {
    751   puts "VALUE $path [$libobj element -as type $path]"
    752741    switch -- [$libobj element -as type $path] {
    753742        structure {
     
    781770                # then normalize to default units
    782771                set units [$libobj get $path.units]
    783                 puts "val=$val units=$units"
    784772                if {"" != $units} {
    785773                    set val [Rappture::Units::mconvert $val \
     
    10781066    }
    10791067
    1080     set first 1
     1068    set count 0
    10811069    set n [$node selectNodes /run/input//number]
    10821070    foreach _n $n {
     
    10861074            [string equal -length 9 $val "gaussian "]} {
    10871075
    1088             if {$first == 1} {
    1089                 set first 0
    1090             } else {
     1076            if {$count > 0} {
    10911077                append varlist ,
    10921078            }
     1079            incr count
    10931080
    10941081            set units ""
     
    11551142    if {$varlist == "\[\]"} {set varlist ""}
    11561143    puts "uq_get_vars returning $varlist"
    1157     return $varlist
    1158 }
     1144    return [list $varlist $count]
     1145}
  • branches/uq/lang/tcl/scripts/task.tcl

    r5182 r5192  
    129129        }
    130130    }
    131     set varlist [$_xmlobj uq_get_vars]
    132     return [Rappture::UQ ::#auto $varlist $uq_type $uq_args]
     131    #set varlist [$_xmlobj uq_get_vars]
     132    foreach {varlist num} [$_xmlobj uq_get_vars] break
     133    return [Rappture::UQ ::#auto $varlist $num $uq_type $uq_args]
    133134}
    134135
     
    222223        # Return a list of the UQ variables and their PDFs.
    223224        # Also turns $tfile into a template file.
    224         set uq_varlist [$_xmlobj uq_get_vars $tfile]
     225        set uq_varlist [lindex [$_xmlobj uq_get_vars $tfile] 0]
    225226    }
    226227
Note: See TracChangeset for help on using the changeset viewer.