Changeset 2136 for trunk/exports/G2export_examples.py
- Timestamp:
- Jan 26, 2016 1:16:37 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/exports/G2export_examples.py
r2132 r2136 248 248 class ExportSingleText(G2IO.ExportBaseclass): 249 249 '''Used to create a text file with single crystal reflection data 250 skips user rejected & space group extinct reflections 250 251 251 252 :param wx.Frame G2frame: reference to main GSAS-II frame … … 278 279 fmt = "{:>10s} {:8.3f} {:12.2f} {:12.4f} {:12.2f} {:7.2f} {:6.0f}" 279 280 self.Write(80*'=') 280 self.Write(hfmt.format("h,k,l","d-space","F_obs","sig(Fobs)","F_calc","phase"," mult"))281 self.Write(hfmt.format("h,k,l","d-space","F_obs","sig(Fobs)","F_calc","phase","twin")) 281 282 self.Write(80*'=') 282 283 for ( 283 h,k,l, mult,dsp,Fobs,sigFobs,Fcalc,FobsT,FcalcT,phase,Icorr284 h,k,l,twin,dsp,Fobs,sigFobs,Fcalc,FobsT,FcalcT,phase,Icorr 284 285 ) in histblk['Data']['RefList']: 285 self.Write(fmt.format(hklfmt.format(h,k,l),dsp,Fobs,sigFobs,Fcalc,phase,mult)) 286 if twin > 0: 287 self.Write(fmt.format(hklfmt.format(h,k,l),dsp,Fobs,sigFobs,Fcalc,phase,twin)) 286 288 self.CloseFile() 287 289 print(str(hist)+' written to file '+str(self.fullpath))
Note: See TracChangeset
for help on using the changeset viewer.