Changeset 2132 for trunk/exports
- Timestamp:
- Jan 22, 2016 10:10:43 AM (9 years ago)
- Location:
- trunk/exports
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/exports/G2export_csv.py ¶
r2103 r2132 268 268 else: #convert to deg 269 269 h,k,l,m,mult,dsp,pos,sig,gam,Fobs,Fcalc,phase,Icorr,Prfo = refItem[:14] 270 FWHM = G2pwd.getgamFW(gam,sig) 271 self.Write(fmt.format(h,k,l,m,pos,Fobs,Fcalc,phase,mult, \ 272 np.sqrt(max(sig,0.0001))/100.,gam/100.,FWHM/100.,i)) 270 s = np.sqrt(max(sig,0.0001))/100. #var -> sig in deg 271 g = gam/100. #-> deg 272 FWHM = G2pwd.getgamFW(g,s) 273 self.Write(fmt.format(h,k,l,m,pos,Fobs,Fcalc,phase,mult,s,g,FWHM,i)) 273 274 else: 274 275 WriteList(self,("h","k","l",tname,"F_obs","F_calc","phase","mult","sig","gam","FWHM","Prfo","phase #")) … … 285 286 else: #convert to deg 286 287 h,k,l,mult,dsp,pos,sig,gam,Fobs,Fcalc,phase,Icorr,Prfo = refItem[:13] 287 FWHM = G2pwd.getgamFW(gam,sig) 288 self.Write(fmt.format(h,k,l,pos,Fobs,Fcalc,phase,mult, \ 289 np.sqrt(max(sig,0.0001))/100.,gam/100.,FWHM/100.,Prfo,i)) 288 g = gam/100. 289 s = np.sqrt(max(sig,0.0001))/100. 290 FWHM = G2pwd.getgamFW(g,s) 291 self.Write(fmt.format(h,k,l,pos,Fobs,Fcalc,phase,mult,s,g,FWHM,Prfo,i)) 290 292 self.CloseFile() 291 293 print(str(hist)+'reflections written to file '+str(self.fullpath)) -
TabularUnified trunk/exports/G2export_examples.py ¶
r1997 r2132 212 212 if 'T' in phasDict['Type']: 213 213 h,k,l,m,mult,dsp,pos,sig,gam,Fobs,Fcalc,phase,x,x,x,x,prfo = refItem[:17] 214 FWHM = 2.*G2pwd.getgamFW(gam,sig)214 FWHM = G2pwd.getgamFW(gam,sig) 215 215 self.Write(fmt.format(hklfmt.format(h,k,l,m),pos,Fobs,Fcalc,phase,mult,sig,gam,FWHM,prfo)) 216 216 else: 217 217 h,k,l,m,mult,dsp,pos,sig,gam,Fobs,Fcalc,phase,x,prfo = refItem[:14] 218 FWHM = 2.*G2pwd.getgamFW(gam,sig) 219 self.Write(fmt.format(hklfmt.format(h,k,l,m),pos,Fobs,Fcalc,phase,mult, \ 220 np.sqrt(max(sig,0.0001))/100.,gam/100.,FWHM/100.,prfo)) 218 g = gam/100. #centideg -> deg 219 s = np.sqrt(max(sig,0.0001))/100. #var -> sig in deg 220 FWHM = G2pwd.getgamFW(g,s) #FWHM 221 self.Write(fmt.format(hklfmt.format(h,k,l,m),pos,Fobs,Fcalc,phase,mult,s,g,FWHM,prfo)) 221 222 else: 222 223 self.Write(94*'=') … … 233 234 if 'T' in phasDict['Type']: 234 235 h,k,l,mult,dsp,pos,sig,gam,Fobs,Fcalc,phase,x,x,x,x,prfo = refItem[:16] 235 FWHM = 2.*G2pwd.getgamFW(gam,sig)236 FWHM = G2pwd.getgamFW(gam,sig) 236 237 self.Write(fmt.format(hklfmt.format(h,k,l),pos,Fobs,Fcalc,phase,mult,np.sqrt(max(sig,0.0001)),gam,FWHM,prfo)) 237 238 else: 238 239 h,k,l,mult,dsp,pos,sig,gam,Fobs,Fcalc,phase,x,prfo = refItem[:13] 239 FWHM = 2.*G2pwd.getgamFW(gam,sig) 240 g = gam/100. #centideg -> deg 241 s = np.sqrt(max(sig,0.0001))/100. #var -> sig in deg 242 FWHM = G2pwd.getgamFW(g,s) 240 243 self.Write(fmt.format(hklfmt.format(h,k,l),pos,Fobs,Fcalc,phase,mult, \ 241 np.sqrt(max(sig,0.0001))/100.,gam/100.,FWHM/100.,prfo))244 s,g,FWHM,prfo)) 242 245 self.CloseFile() 243 246 print(str(hist)+'reflections written to file '+str(self.fullpath))
Note: See TracChangeset
for help on using the changeset viewer.