Changeset 942 for trunk/GSASIIstrMath.py
- Timestamp:
- Jun 5, 2013 9:26:36 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIstrMath.py
r939 r942 516 516 return Tdata,Mdata,Fdata,Xdata,dXdata,IAdata,Uisodata,Uijdata 517 517 518 def getFFvalues(FFtables,SQ):519 'Needs a doc string'520 FFvals = {}521 for El in FFtables:522 FFvals[El] = G2el.ScatFac(FFtables[El],SQ)[0]523 return FFvals524 525 def getBLvalues(BLtables):526 'Needs a doc string'527 BLvals = {}528 for El in BLtables:529 BLvals[El] = BLtables[El][1][1]530 return BLvals531 532 518 def StructureFactor(refList,G,hfx,pfx,SGData,calcControls,parmDict): 533 519 ''' Compute structure factors for all h,k,l for phase … … 557 543 FP = np.array([FFtables[El][hfx+'FP'] for El in Tdata]) 558 544 FPP = np.array([FFtables[El][hfx+'FPP'] for El in Tdata]) 559 maxPos = len(SGData['SGOps'])560 545 Uij = np.array(G2lat.U6toUij(Uijdata)) 561 546 bij = Mast*Uij.T … … 568 553 if not len(refl[-1]): #no form factors 569 554 if 'N' in parmDict[hfx+'Type']: 570 refl[-1] = getBLvalues(BLtables)555 refl[-1] = G2el.getBLvalues(BLtables) 571 556 else: #'X' 572 refl[-1] = getFFvalues(FFtables,SQ)557 refl[-1] = G2el.getFFvalues(FFtables,SQ) 573 558 for i,El in enumerate(Tdata): 574 559 FF[i] = refl[-1][El] … … 611 596 FP = np.array([FFtables[El][hfx+'FP'] for El in Tdata]) 612 597 FPP = np.array([FFtables[El][hfx+'FPP'] for El in Tdata]) 613 maxPos = len(SGData['SGOps'])614 598 Uij = np.array(G2lat.U6toUij(Uijdata)) 615 599 bij = Mast*Uij.T
Note: See TracChangeset
for help on using the changeset viewer.