- Timestamp:
- Mar 7, 2020 5:43:13 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r4337 r4347 5414 5414 ifNeut = True 5415 5415 Names = files[label][0][:-1].split(',') 5416 Xmax = 100. 5417 if 'XFQ' in label: 5418 Xmax = RMCPdict.get('Rmax',100.) 5416 5419 for line in files[label][1:]: 5417 5420 items = line.split(',') 5421 if 'XFQ' in label and float(items[0]) > Xmax: 5422 break 5418 5423 X.append(float(items[0])) 5419 5424 Yobs.append(float(items[1])) … … 5422 5427 Ycalc = np.array([X,Ycalc]) 5423 5428 if 'G(R)' in Labels[label][1]: 5429 5424 5430 Ysave.append(Yobs) 5425 5431 Ymin = Ysave[0][1][0] … … 5460 5466 XY = [[X.T,Y.T] for iy,Y in enumerate(Partials) if 'Va' not in Names[iy+1]] 5461 5467 else: 5462 XY = [[X.T,(DX*Y.T)] for iy,Y in enumerate(Partials) if 'Va' not in Names[iy+1]] 5468 if ifNeut: 5469 XY = [[X.T,(DX*Y.T)] for iy,Y in enumerate(Partials) if 'Va' not in Names[iy+1]] 5470 else: 5471 XY = [[X.T,(DX*Y.T)*X.T] for iy,Y in enumerate(Partials) if 'Va' not in Names[iy+1]] 5463 5472 Names = [name for name in Names if 'Va' not in name] 5464 5473 if 'G(R)' in Labels[label][1]: … … 5470 5479 BLtables = G2elem.GetBLtable(generalData) 5471 5480 AtNum = generalData['NoAtoms'] 5472 for atm in AtNum: sumAtm += AtNum[atm] 5481 if ifNeut: 5482 for atm in AtNum: sumAtm += AtNum[atm] 5483 else: 5484 for atm in AtNum: 5485 sumAtm += AtNum[atm]*G2elem.GetFFtable([atm,])[atm]['Z'] 5473 5486 bfac = {} 5474 5487 bcorr = [] … … 5480 5493 bfac[atm] = AtNum[atm]/sumAtm 5481 5494 else: 5482 bfac[atm] = G2elem.GetFFtable([atm,])[atm]['Z']*AtNum[atm]/sumAtm5495 bfac[atm] = 10.*G2elem.GetFFtable([atm,])[atm]['Z']*AtNum[atm]/sumAtm 5483 5496 for name in Names: 5484 5497 if '-' in name: -
trunk/GSASIIplot.py
r4337 r4347 8322 8322 G2frame.tau -= 0.05 8323 8323 G2frame.tau %= 1. #force 0-1 range; makes loop 8324 G2frame.G2plotNB.status.SetStatusText('Modulation tau = %. 2f'%(G2frame.tau),1)8324 G2frame.G2plotNB.status.SetStatusText('Modulation tau = %.4f'%(G2frame.tau),1) 8325 8325 data['Drawing']['Atoms'],Fade = G2mth.ApplyModulation(data,G2frame.tau) #modifies drawing atom array! 8326 8326 SetDrawAtomsText(data['Drawing']['Atoms']) -
trunk/GSASIIpwd.py
r4342 r4347 2211 2211 newPhase['General']['SGData'] = G2spc.SpcGroup('P 1')[1] 2212 2212 newPhase['General']['Cell'][1:] = G2lat.TransformCell(Cell,Trans) 2213 GB = G2lat.cell2Gmat( newPhase['General']['Cell'][1:7])[0] 2214 RMCPdict['Rmax'] = np.min(np.sqrt(np.array([1./G2lat.calc_rDsq2(H,GB) for H in [[1,0,0],[0,1,0],[0,0,1]]])))/2. 2213 2215 newPhase,Atcodes = G2lat.TransformPhase(Phase,newPhase,Trans,np.zeros(3),np.zeros(3),ifMag=False) 2214 2216 Natm = np.core.defchararray.count(np.array(Atcodes),'+') #no. atoms in original unit cell
Note: See TracChangeset
for help on using the changeset viewer.