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

fix job count for UQ dialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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}
Note: See TracChangeset for help on using the changeset viewer.