Ignore:
Timestamp:
Jun 5, 2017 9:12:03 PM (6 years ago)
Author:
vondreele
Message:

fix Pawley restraint problem
force skip of disordered residues in pdb reader - can't handle them in G2
small cleanup in SVD stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/imports/G2phase.py

    r2840 r2858  
    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                 Atom.append(ran.randint(0,sys.maxint))
    133                 Atoms.append(Atom)
     132                if S[16] in [' ','A']:      #remove disorered residues - can't handle them just now
     133                    Atom[3] = Atom[3][:3]
     134                    Atom.append(ran.randint(0,sys.maxint))
     135                    Atoms.append(Atom)
    134136            elif 'ANISOU' in S[:6]:
    135137                Uij = S[30:72].split()
Note: See TracChangeset for help on using the changeset viewer.