Changeset 394 for trunk/addcmds.tcl
- Timestamp:
- Dec 4, 2009 5:05:26 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/addcmds.tcl
- Property rcs:date changed from 2001/04/17 22:46:55 to 2001/05/23 20:06:32
- Property rcs:lines changed from +76 -163 to +29 -3
- Property rcs:rev changed from 1.19 to 1.20
r383 r394 247 247 grid [radiobutton $np.cb3 -text "D-min" -variable newhist(LimitMode) \ 248 248 -value 0] -column 2 -row 5 -sticky w 249 grid [radiobutton $np.cb4 -text "TOF/2-Theta Max" -variable newhist(LimitMode)\ 249 grid [radiobutton $np.cb4 -text "TOF-min\n2-Theta Max" \ 250 -variable newhist(LimitMode) -anchor w -justify l \ 250 251 -value 1] -column 2 -row 6 -sticky w 251 252 … … 400 401 lappend newhist(banklist) $num 401 402 # compute last point 403 set tmin 0 402 404 set tmax 0 403 405 catch { 404 406 scan $line "BANK%d%d%d%s%f%f" num nchan nrec rest start step 407 set tmin [expr $start/100.] 405 408 set tmax [expr ($start + $step*($nchan-1))/100.] 406 409 } 410 set newhist(tmin$num) $tmin 407 411 set newhist(tmax$num) $tmax 408 412 } … … 451 455 global newhist 452 456 set num $newhist(banknum) 453 set newhist(2tLimit) $newhist(tmax$num) 457 if {$newhist(insttype) == "TOF"} { 458 set newhist(2tLimit) $newhist(tmin$num) 459 if {[llength $newhist(banklist)] == $newhist(instbanks)} { 460 set newhist(setnum) $newhist(banknum) 461 } 462 } else { 463 set newhist(2tLimit) $newhist(tmax$num) 464 } 454 465 set newhist(LimitMode) 1 466 455 467 } 456 468 … … 509 521 set newhist(instbanks) \ 510 522 [string trim [string range $line 12 end]] 523 } 524 # scan for the INS BANK line 525 if {[string first "INS HTYPE" $line] == 0} { 526 if {[string index [lindex $line 2] 2] == "T"} { 527 set newhist(insttype) TOF 528 } elseif {[string index [lindex $line 2] 2] == "E"} { 529 set newhist(insttype) ED 530 } else { 531 set newhist(insttype) CW 532 } 511 533 } 512 534 } … … 880 902 # needed in UNIX 881 903 set env(ATOMDATA) [file join $expgui(gsasdir) data atmdata.dat] 904 set env(gsas) [file nativename $expgui(gsasdir)] 882 905 # needed in Windows 883 906 set env(GSAS) [file nativename $expgui(gsasdir)] … … 1575 1598 # needed in UNIX 1576 1599 set env(ATOMDATA) [file join $expgui(gsasdir) data atmdata.dat] 1600 set env(gsas) [file nativename $expgui(gsasdir)] 1577 1601 # needed in Windows 1578 1602 set env(GSAS) [file nativename $expgui(gsasdir)] … … 1662 1686 } 1663 1687 } 1688 # default 1689 set newhist(insttype) CW
Note: See TracChangeset
for help on using the changeset viewer.