- Timestamp:
- Apr 5, 2015 10:48:26 PM (9 years ago)
- Location:
- branches/uq
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/uq/gui/scripts/numberentry.tcl
r5166 r5192 42 42 # ---------------------------------------------------------------------- 43 43 itcl::body Rappture::NumberEntry::constructor {owner path args} { 44 puts "NumberEntry '$path' '$args'"45 44 set varname [lindex [split $path ()] end-1] 46 45 if {[catch {$owner isa Rappture::ControlOwner} valid] != 0 || !$valid} { -
branches/uq/gui/scripts/probdisteditor.tcl
r5189 r5192 200 200 # ---------------------------------------------------------------------- 201 201 itcl::body Rappture::ProbDistEditor::value {{newval ""}} { 202 puts "PDE::value $newval"202 # puts "PDE::value $newval" 203 203 204 204 #FIXME: _value has numerical values _uvalue has value with units … … 286 286 # ---------------------------------------------------------------------- 287 287 itcl::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" 289 289 290 290 set modes {exact uniform gaussian custom} … … 606 606 # ---------------------------------------------------------------------- 607 607 itcl::body Rappture::ProbDistEditor::_apply {op {widget ""}} { 608 puts "PDE::_apply $op $widget"608 #puts "PDE::_apply $op $widget" 609 609 if {$op != "bindings"} { 610 610 # need this for value/finalize -
branches/uq/gui/scripts/tempgauge.tcl
r5029 r5192 73 73 74 74 if {"" != $itk_option(-spectrum)} { 75 puts "TemperatureGauge"76 75 set color [$itk_option(-spectrum) get [value]] 77 puts "TemperatureGauge: color=$color"78 76 set frac [$itk_option(-spectrum) get -fraction [value]] 79 77 } else { -
branches/uq/gui/scripts/uq.tcl
r5182 r5192 4 4 itcl::class Rappture::UQ { 5 5 6 constructor {varlist type uqargs} {6 constructor {varlist num type uqargs} { 7 7 puts "Rappture::UQ constructor $varlist:$type:$uqargs" 8 8 set _varlist $varlist 9 9 set _type $type 10 10 set _args $uqargs 11 set _num $num 11 12 } 12 13 … … 30 31 private variable _num_pts {} 31 32 private variable _go "" 33 private variable _num 0 32 34 } 33 35 … … 118 120 119 121 itcl::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" 122 125 if {![array exists _num_pts]} { _init_num_pts_array } 123 126 switch $_type { -
branches/uq/lang/tcl/scripts/library.tcl
r5191 r5192 690 690 # ---------------------------------------------------------------------- 691 691 itcl::body Rappture::LibraryObj::diff {libobj} { 692 693 puts "Library DIFF $libobj"694 692 set rlist "" 695 693 … … 698 696 set otherv [Rappture::entities $libobj input] 699 697 700 puts "thisv=$thisv\n"701 puts "otherv=$otherv\n"702 703 698 # scan through values for this object, and compare against other one 704 699 foreach path $thisv { 705 puts "path=$path"706 700 set i [lsearch -exact $otherv $path] 707 701 if {$i < 0} { … … 709 703 lappend rlist - $path $raw "" 710 704 } else { 711 puts "tvalue=[value $this $path]"712 puts "ovalue=[value $libobj $path]"713 705 foreach {traw tnorm} [value $this $path] break 714 706 foreach {oraw onorm} [value $libobj $path] break 715 puts "tnorm=$tnorm onorm=$onorm traw=$traw oraw=$oraw"716 707 if {![string equal $tnorm $onorm]} { 717 708 lappend rlist c $path $traw $oraw … … 726 717 lappend rlist + $path "" $oraw 727 718 } 728 puts "LDIFF returning $rlist"729 719 return $rlist 730 720 } … … 749 739 # ---------------------------------------------------------------------- 750 740 itcl::body Rappture::LibraryObj::value {libobj path} { 751 puts "VALUE $path [$libobj element -as type $path]"752 741 switch -- [$libobj element -as type $path] { 753 742 structure { … … 781 770 # then normalize to default units 782 771 set units [$libobj get $path.units] 783 puts "val=$val units=$units"784 772 if {"" != $units} { 785 773 set val [Rappture::Units::mconvert $val \ … … 1078 1066 } 1079 1067 1080 set first 11068 set count 0 1081 1069 set n [$node selectNodes /run/input//number] 1082 1070 foreach _n $n { … … 1086 1074 [string equal -length 9 $val "gaussian "]} { 1087 1075 1088 if {$first == 1} { 1089 set first 0 1090 } else { 1076 if {$count > 0} { 1091 1077 append varlist , 1092 1078 } 1079 incr count 1093 1080 1094 1081 set units "" … … 1155 1142 if {$varlist == "\[\]"} {set varlist ""} 1156 1143 puts "uq_get_vars returning $varlist" 1157 return $varlist1158 } 1144 return [list $varlist $count] 1145 } -
branches/uq/lang/tcl/scripts/task.tcl
r5182 r5192 129 129 } 130 130 } 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] 133 134 } 134 135 … … 222 223 # Return a list of the UQ variables and their PDFs. 223 224 # 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] 225 226 } 226 227
Note: See TracChangeset
for help on using the changeset viewer.