Changeset 3048
- Timestamp:
- Sep 5, 2017 4:00:51 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIImath.py
r3045 r3048 2657 2657 tgts += list(Boxes[jbox[0],jbox[1],jbox[2]]) 2658 2658 tgts = list(set(tgts)) 2659 tgts = [tgt for tgt in tgts if atom[:3] != cartAtoms[tgt][:3]] #exclude same residue 2659 2660 tgts = [tgt for tgt in tgts if np.sum((XYZ[ia]-XYZ[tgt])**2) < dsmax] 2660 tgts = [tgt for tgt in tgts if atom[:3] != cartAtoms[tgt][:3]] #exclude same residue2661 2661 ires = int(atom[0]) 2662 2662 if old: … … 2686 2686 IntAct = chainIntAct[ich] 2687 2687 nRes = len(IntAct) 2688 Probs = [0.,0.,0.,0.] 2688 Probs = [0.,0.,0.,0.] #skip 1st 4 residues in chain 2689 2689 for i in range(4,nRes-4): 2690 2690 mtrx = np.zeros(5) … … 2712 2712 prob = np.inner(np.inner(mtrx,b1),mtrx) 2713 2713 Probs.append(prob) 2714 Probs += 4*[0.,] 2714 Probs += 4*[0.,] #skip last 4 residues in chain 2715 2715 chainProb += Probs 2716 2716 return resNames,chainProb -
trunk/GSASIIphsGUI.py
r3045 r3048 1003 1003 Amat,Bmat = G2lat.cell2AB(generalData['Cell'][1:7]) 1004 1004 radii = generalData['BondRadii'] 1005 if generalData.get('DisAglCtls',{}):1006 radii = generalData['DisAglCtls']['BondRadii']1005 # if generalData.get('DisAglCtls',{}): 1006 # radii = generalData['DisAglCtls']['BondRadii'] 1007 1007 atomTypes = generalData['AtomTypes'] 1008 1008 try: … … 3291 3291 3292 3292 def OnValidProtein(event): 3293 resNames,Probs1 = G2mth.validProtein(data,True) 3294 resNames,Probs2 = G2mth.validProtein(data,False) 3293 resNames,Probs1 = G2mth.validProtein(data,True) #old version 3294 resNames,Probs2 = G2mth.validProtein(data,False) #new version 3295 3295 print 'Plot 1 is Protein validation based on errat.f' 3296 3296 print 'Ref: Colovos, C. & Yeates, T.O. Protein Science 2, 1511-1519 (1991).' -
trunk/GSASIIstrMath.py
r3041 r3048 28 28 import GSASIIobj as G2obj 29 29 import GSASIImpsubs as G2mp 30 G2mp.InitMP(False) # This disables multiprocessing30 #G2mp.InitMP(False) # This disables multiprocessing 31 31 32 32 sind = lambda x: np.sin(x*np.pi/180.) -
trunk/config_example.py
r3041 r3048 159 159 computations are performed in-line. 160 160 ''' 161 162 Old_protein_validator = True163 ''' When True (default) select the old protein validator of Colovos & Yeates (errat) or164 if False use that (erratv2) of Obukhov & Yeates.165 '''
Note: See TracChangeset
for help on using the changeset viewer.