Changeset 1035
- Timestamp:
- Aug 15, 2013 11:32:19 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASII.py
r1032 r1035 2333 2333 Histograms = {} 2334 2334 Phases = {} 2335 pId = 02336 hId = 02337 2335 for phase in phaseData: 2338 2336 Phase = phaseData[phase] 2339 2337 if Phase['Histograms']: 2340 2338 if phase not in Phases: 2341 Phase['pId'] = pId2342 pId += 12343 2339 Phases[phase] = Phase 2344 2340 for hist in Phase['Histograms']: … … 2349 2345 elif 'HKLF' in hist[:4]: 2350 2346 Histograms[hist] = self.GetHKLFdatafromTree(item) 2351 #future restraint, etc. histograms here 2352 Histograms[hist]['hId'] = hId 2353 hId += 1 2347 #future restraint, etc. histograms here 2354 2348 return Histograms,Phases 2355 2349 -
trunk/GSASIIstrMath.py
r1030 r1035 1239 1239 Histogram['Residuals'][phfx+'Rf^2'] = min(100.,np.sqrt(sumdFsq/sumFosq)*100.) 1240 1240 Histogram['Residuals'][phfx+'Nref'] = len(refList) 1241 Histogram['Residuals']['hId'] = hId 1241 1242 1242 1243 def getPowderProfile(parmDict,x,varylist,Histogram,Phases,calcControls,pawleyLookup): -
trunk/exports/G2cif.py
r1030 r1035 38 38 reload(G2stMn) 39 39 40 DEBUG = False #True to skip printing of reflection/powder profile lists40 DEBUG = True #True to skip printing of reflection/powder profile lists 41 41 42 42 def getCallerDocString(): # for development … … 145 145 # include an overall profile r-factor, if there is more than one powder histogram 146 146 if len(self.powderDict) > 1: 147 WriteCIFitem('\n# OVERALL POWDERR-FACTOR')147 WriteCIFitem('\n# OVERALL WEIGHTED R-FACTOR') 148 148 try: 149 149 R = '%.3f'%(self.OverallParms['Covariance']['Rvals']['Rwp']) … … 865 865 WriteCIFitem('_diffrn_radiation_wavelength',G2mth.ValEsd(lam1,slam1)) 866 866 867 868 867 if not oneblock: 869 868 if not phasebyhistDict.get(histlbl): … … 874 873 '\n\t_pd_phase_id' + 875 874 '\n\t_pd_phase_block_id' + 876 '\n\t_pd_phase_mass_%') 875 '\n\t_pd_phase_mass_%' + 876 '\n\t_refine_ls_R_F_factor' + 877 '\n\t_refine_ls_R_Fsqd_factor') 877 878 wtFrSum = 0. 878 879 for phasenam in phasebyhistDict.get(histlbl): … … 894 895 str(self.Phases[phasenam]['pId']) + 895 896 ' '+datablockidDict[phasenam]+ 896 ' '+G2mth.ValEsd(wtFr,sig) 897 ' '+G2mth.ValEsd(wtFr,sig) + 898 ' '+G2mth.ValEsd(histblk[pfx+'Rf'],-.009) 899 ' '+G2mth.ValEsd(histblk[pfx+'Rf^2'],-.009) 897 900 ) 898 901 899 902 # TODO: this will need help from Bob 900 903 # WriteCIFitem('_pd_proc_ls_prof_R_factor','?') 901 # WriteCIFitem('_pd_proc_ls_prof_wR_factor','?') 902 # WriteCIFitem('_pd_proc_ls_prof_wR_expected','?') 903 # WriteCIFitem('_refine_ls_R_Fsqd_factor','?') 904 WriteCIFitem('_pd_proc_ls_prof_wR_factor','%.3f'%(histblk['wR'])) 905 WriteCIFitem('_pd_proc_ls_prof_wR_expected','?') 904 906 905 907 if histblk['Instrument Parameters'][0]['Type'][1][1] == 'X':
Note: See TracChangeset
for help on using the changeset viewer.