Changeset 942 for trunk/GSASIIstrIO.py
- Timestamp:
- Jun 5, 2013 9:26:36 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASIIstrIO.py ¶
r939 r942 483 483 print >>pFile,' Initial shift factor: ','%.3f'%(Controls['shift factor']) 484 484 485 def GetFFtable(General):486 ''' returns a dictionary of form factor data for atom types found in General487 488 :param dict General: dictionary of phase info.; includes AtomTypes489 :return: FFtable, dictionary of form factor data; key is atom type490 491 '''492 atomTypes = General['AtomTypes']493 FFtable = {}494 for El in atomTypes:495 FFs = G2el.GetFormFactorCoeff(El.split('+')[0].split('-')[0])496 for item in FFs:497 if item['Symbol'] == El.upper():498 FFtable[El] = item499 return FFtable500 501 def GetBLtable(General):502 ''' returns a dictionary of neutron scattering length data for atom types & isotopes found in General503 504 :param dict General: dictionary of phase info.; includes AtomTypes & Isotopes505 :return: BLtable, dictionary of scattering length data; key is atom type506 '''507 atomTypes = General['AtomTypes']508 BLtable = {}509 isotopes = General['Isotopes']510 isotope = General['Isotope']511 for El in atomTypes:512 BLtable[El] = [isotope[El],isotopes[El][isotope[El]]]513 return BLtable514 515 485 def GetPawleyConstr(SGLaue,PawleyRef,pawleyVary): 516 486 'needs a doc string' … … 900 870 pId = PhaseData[name]['pId'] 901 871 pfx = str(pId)+'::' 902 FFtable = G etFFtable(General)903 BLtable = G etBLtable(General)872 FFtable = G2el.GetFFtable(General['AtomTypes']) 873 BLtable = G2el.GetBLtable(General) 904 874 FFtables.update(FFtable) 905 875 BLtables.update(BLtable)
Note: See TracChangeset
for help on using the changeset viewer.