Ignore:
Timestamp:
Jul 7, 2010, 11:23:10 AM (14 years ago)
Author:
braffert
Message:

correctly pass pdb formula and lammps typemap from original molecule to sequence

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/analyzer.tcl

    r1791 r1792  
    12131213              if {[regexp "^MODEL" $line] && $framecontents != ""} {
    12141214                set framepath $sequencepath.element($framenum)
    1215                 set molpath $framepath.structure.components.molecule.pdb
    1216                 $xmlobj put $molpath $framecontents
     1215                set molpath $framepath.structure.components.molecule
     1216                $xmlobj put $molpath.pdb $framecontents
    12171217                $xmlobj put $molpath.formula $formula
    12181218                $xmlobj put $framepath.index $framenum
     
    12331233            set seqlabel [$xmlobj get $path.$child.about.label]
    12341234            set descr [$xmlobj get $path.$child.about.description]
    1235             set formula [$xmlobj get $path.$child.components.molecule.formula]
     1235            set typemap [$xmlobj get $path.$child.components.molecule.lammpstypemap]
    12361236            $xmlobj put $sequencepath.about.label $seqlabel
    12371237            $xmlobj put $sequencepath.about.description $descr
     
    12431243              if {[regexp "^ITEM: ATOMS" $line] && $framecontents != ""} {
    12441244                set framepath $sequencepath.element($framenum)
    1245                 set molpath $framepath.structure.components.molecule.lammps
    1246                 $xmlobj put $molpath $framecontents
     1245                set molpath $framepath.structure.components.molecule
     1246                $xmlobj put $molpath.lammps $framecontents
     1247                $xmlobj put $molpath.lammpstypemap $typemap
    12471248                $xmlobj put $framepath.index $framenum
    12481249                incr framenum
Note: See TracChangeset for help on using the changeset viewer.