Changeset 3033
- Timestamp:
- Aug 30, 2017 3:09:56 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property
svn:global-ignores
set to
binwin2.7
-
Property
svn:global-ignores
set to
-
trunk/GSASIImath.py
r3030 r3033 2602 2602 if atom[1] in resNames: 2603 2603 if atom[4].strip() in ['S','Se']: 2604 if not old: 2605 continue #S,Se skipped for erratv2? 2604 2606 atom[3] = 'Os' 2605 2607 atom[4] = 'O' 2606 2608 cartAtoms.append(atom[:cx+3]) 2607 2609 cartAtoms[-1][cx:cx+3] = np.inner(Amat,cartAtoms[-1][cx:cx+3]) 2608 if atom[3] in ['N','CA','C','O']:2609 cartAtoms[-1].append('B')2610 else:2611 cartAtoms[-1].append('S')2612 2610 XYZ = np.array([atom[cx:cx+3] for atom in cartAtoms]) 2613 2611 xyzmin = np.array([np.min(XYZ.T[i]) for i in [0,1,2]]) … … 2662 2660 tgts = [tgt for tgt in tgts if atom[:3] != cartAtoms[tgt][:3]] #exclude same residue 2663 2661 ires = int(atom[0]) 2664 if atom[3].strip() == 'C': 2665 tgts = [tgt for tgt in tgts if not (cartAtoms[tgt][3].strip() == 'N' and int(cartAtoms[tgt][0]) in [ires-1,ires+1])] 2666 elif atom[3].strip() == 'N': 2667 tgts = [tgt for tgt in tgts if not (cartAtoms[tgt][3].strip() in ['C','CA'] and int(cartAtoms[tgt][0]) in [ires-1,ires+1])] 2668 elif atom[3].strip() == 'CA': 2669 tgts = [tgt for tgt in tgts if not (cartAtoms[tgt][3].strip() == 'N' and int(cartAtoms[tgt][0]) in [ires-1,ires+1])] 2662 if old: 2663 if atom[3].strip() == 'C': 2664 tgts = [tgt for tgt in tgts if not (cartAtoms[tgt][3].strip() == 'N' and int(cartAtoms[tgt][0]) in [ires-1,ires+1])] 2665 elif atom[3].strip() == 'N': 2666 tgts = [tgt for tgt in tgts if not (cartAtoms[tgt][3].strip() in ['C','CA'] and int(cartAtoms[tgt][0]) in [ires-1,ires+1])] 2667 elif atom[3].strip() == 'CA': 2668 tgts = [tgt for tgt in tgts if not (cartAtoms[tgt][3].strip() == 'N' and int(cartAtoms[tgt][0]) in [ires-1,ires+1])] 2669 else: 2670 if atom[3].strip() == 'C': 2671 tgts = [tgt for tgt in tgts if not (cartAtoms[tgt][3].strip() == 'N' and int(cartAtoms[tgt][0]) == ires+1)] 2672 elif atom[3].strip() == 'N': 2673 tgts = [tgt for tgt in tgts if not (cartAtoms[tgt][3].strip() == 'C' and int(cartAtoms[tgt][0]) == ires-1)] 2670 2674 for tgt in tgts: 2671 2675 dsqt = np.sqrt(np.sum((XYZ[ia]-XYZ[tgt])**2)) -
trunk/GSASIIphsGUI.py
r3030 r3033 3291 3291 3292 3292 def OnValidProtein(event): 3293 old = GSASIIpath.GetConfigValue('Old proteinvalidator',True)3293 old = GSASIIpath.GetConfigValue('Old_protein_validator',True) 3294 3294 resNames,Probs = G2mth.validProtein(data,old) 3295 3295 if old: #duplicate errat.f -
trunk/config_example.py
r3000 r3033 159 159 computations are performed in-line. 160 160 ''' 161 162 Old_protein_validator = True 163 ''' When True (default) select the old protein validator of Colovos & Yeates (errat) or 164 if False use that (erratv2) of Obukhov & Yeates. 165 '''
Note: See TracChangeset
for help on using the changeset viewer.