Ignore:
Timestamp:
May 27, 2017 11:20:45 AM (6 years ago)
Author:
vondreele
Message:

fix PDB importer & reimport atoms
rework RB GUI - now shows just one residue at a time & structure plot follows selection
also RB parameter changes show on structure drawing
add protein validator - not complete
remove commented out dead code from GSAIIgrid
fix bug if cancel of macro restraints selection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/imports/G2phase.py

    r2817 r2840  
    130130                    S[12:17].strip(),Type.strip().capitalize(),'',XYZ[0],XYZ[1],XYZ[2],
    131131                    float(S[55:61]),SytSym,Mult,'I',Uiso,0,0,0,0,0,0]
    132                 S = file.readline()
    133                 line += 1
    134                 if 'ANISOU' in S[:6]:
    135                     Uij = S[30:72].split()
    136                     Uij = [float(Uij[0])/10000.,float(Uij[1])/10000.,float(Uij[2])/10000.,
    137                         float(Uij[3])/10000.,float(Uij[4])/10000.,float(Uij[5])/10000.]
    138                     Atom = Atom[:14]+Uij
    139                     Atom[12] = 'A'
    140132                Atom.append(ran.randint(0,sys.maxint))
    141133                Atoms.append(Atom)
     134            elif 'ANISOU' in S[:6]:
     135                Uij = S[30:72].split()
     136                Uij = [float(Uij[0])/10000.,float(Uij[1])/10000.,float(Uij[2])/10000.,
     137                    float(Uij[3])/10000.,float(Uij[4])/10000.,float(Uij[5])/10000.]
     138                Atoms[-1] = Atoms[-1][:14]+Uij
     139                Atoms[-1][12] = 'A'
     140                Atoms[-1].append(ran.randint(0,sys.maxint))
    142141            S = file.readline()
    143142            line += 1
Note: See TracChangeset for help on using the changeset viewer.