Changeset 1852 for trunk/GSASIIstrIO.py
- Timestamp:
- May 14, 2015 10:31:16 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIstrIO.py
r1843 r1852 250 250 FP,FPP,Mu = G2el.FPcalc(Orbs, keV) 251 251 FFtables[El][hfx+'FP'] = FP 252 FFtables[El][hfx+'FPP'] = FPP 252 FFtables[El][hfx+'FPP'] = FPP 253 254 def PrintFprime(FFtables,pfx,pFile): 255 print >>pFile,'\n Resonant form factors:' 256 Elstr = ' Element:' 257 FPstr = " f' :" 258 FPPstr = ' f" :' 259 for El in FFtables: 260 Elstr += ' %8s'%(El) 261 FPstr += ' %8.3f'%(FFtables[El][pfx+'FP']) 262 FPPstr += ' %8.3f'%(FFtables[El][pfx+'FPP']) 263 print >>pFile,Elstr 264 print >>pFile,FPstr 265 print >>pFile,FPPstr 253 266 254 267 def GetPhaseNames(GPXfile): … … 2243 2256 return hapVary,hapDict,controlDict 2244 2257 2245 def SetHistogramPhaseData(parmDict,sigDict,Phases,Histograms, Print=True,pFile=None):2258 def SetHistogramPhaseData(parmDict,sigDict,Phases,Histograms,FFtables,Print=True,pFile=None): 2246 2259 'needs a doc string' 2247 2260 … … 2503 2516 Histogram['Residuals'][str(pId)+'::Name'] = phase 2504 2517 pfx = str(pId)+':'+str(hId)+':' 2518 hfx = ':%s:'%(hId) 2505 2519 if 'PWDR' in histogram: 2506 2520 print >>pFile,' Final refinement RF, RF^2 = %.2f%%, %.2f%% on %d reflections' \ … … 2527 2541 2528 2542 elif 'HKLF' in histogram: 2543 Inst = Histogram['Instrument Parameters'][0] 2529 2544 print >>pFile,' Final refinement RF, RF^2 = %.2f%%, %.2f%% on %d reflections (%d user rejected, %d sp.gp.extinct)' \ 2530 2545 %(Histogram['Residuals'][pfx+'Rf'],Histogram['Residuals'][pfx+'Rf^2'],Histogram['Residuals'][pfx+'Nref'], 2531 2546 Histogram['Residuals'][pfx+'Nrej'],Histogram['Residuals'][pfx+'Next']) 2547 if FFtables != None and 'T' not in Inst['Type'][0]: 2548 PrintFprime(FFtables,hfx,pFile) 2532 2549 print >>pFile,' HKLF histogram weight factor = ','%.3f'%(Histogram['wtFactor']) 2533 2550 if pfx+'Scale' in ScalExtSig: … … 2775 2792 return histVary,histDict,controlDict 2776 2793 2777 def SetHistogramData(parmDict,sigDict,Histograms, Print=True,pFile=None):2794 def SetHistogramData(parmDict,sigDict,Histograms,FFtables,Print=True,pFile=None): 2778 2795 'needs a doc string' 2779 2796 … … 2977 2994 if Print: 2978 2995 print >>pFile,' Instrument type: ',Sample['Type'] 2996 if FFtables != None and 'T' not in Inst['Type'][0]: 2997 PrintFprime(FFtables,pfx,pFile) 2979 2998 PrintSampleParmsSig(Sample,sampSig) 2980 2999 PrintInstParmsSig(Inst,instSig)
Note: See TracChangeset
for help on using the changeset viewer.