Changeset 675
- Timestamp:
- Dec 4, 2009 5:10:08 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dumpexp.tcl
- Property rcs:date changed from 2002/01/22 23:12:36 to 2003/04/10 22:19:24
- Property rcs:lines changed from +31 -15 to +10 -7
- Property rcs:rev changed from 1.2 to 1.3
r545 r675 6 6 exit 7 7 } 8 9 set filename [lindex $argv 0] 10 8 11 set expgui(font) 14 9 12 set expgui(debug) 0 10 13 11 pack [label .l -text "Reading $ argv\nPlease wait"]14 pack [label .l -text "Reading $filename\nPlease wait"] 12 15 update 13 16 wm protocol . WM_DELETE_WINDOW {puts ""; exit} … … 49 52 SetTkDefaultOptions $expgui(font) 50 53 51 if {![file exists $ argv]} {54 if {![file exists $filename]} { 52 55 # read error 53 56 wm withdraw . 54 57 tk_dialog .err {Bad file} \ 55 "$argv0: error\nfile $ argvnot found" \58 "$argv0: error\nfile $filename not found" \ 56 59 error 0 Continue 57 60 exit 58 61 } 59 set fmt [expload $ argv]62 set fmt [expload $filename] 60 63 if {$fmt < 0} { 61 64 # read error 62 65 wm withdraw . 63 66 tk_dialog .err {Bad file} \ 64 "$argv0: error reading $ argv\nThis is not a valid GSAS .EXP file" \67 "$argv0: error reading $filename\nThis is not a valid GSAS .EXP file" \ 65 68 error 0 Continue 66 69 exit … … 71 74 wm withdraw . 72 75 tk_dialog .err {Bad file} \ 73 "$argv0: error reading $ argv\nNo phases found" \76 "$argv0: error reading $filename\nNo phases found" \ 74 77 error 0 Continue 75 78 exit … … 106 109 if {$expmap(phasetype) == 4} { 107 110 tk_dialog .err {Only mm phase} \ 108 "$argv0: unable to read from $ argv\nOnly a macromolecular phase is present." \111 "$argv0: unable to read from $filename\nOnly a macromolecular phase is present." \ 109 112 error 0 Continue 110 113 exit
Note: See TracChangeset
for help on using the changeset viewer.