Changeset 5192 for branches/uq/lang/tcl/scripts/library.tcl
- Timestamp:
- Apr 5, 2015, 10:48:26 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note: See TracChangeset
for help on using the changeset viewer.