Ignore:
Timestamp:
Oct 29, 2013 11:42:23 AM (8 years ago)
Author:
toby
Message:

more export changes to catch up to data structure updates; update docs; change RF2 to use superscript since 2 is not working -- at least on Mac

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/exports/G2export_csv.py

    r1123 r1127  
    192192        for i,phasenam in enumerate(sorted(histblk['Reflection Lists'])):
    193193            for (
    194                 h,k,l,mult,dsp,pos,sig,gam,Fobs,Fcalc,phase,eqlist,phaselist,Icorr,FFdict
    195                 ) in histblk['Reflection Lists'][phasenam]:
     194                h,k,l,mult,dsp,pos,sig,gam,Fobs,Fcalc,phase,Icorr
     195                ) in histblk['Reflection Lists'][phasenam]['RefList']:
    196196                self.Write(fmt.format(h,k,l,pos,Fobs,Fcalc,phase,mult,i))
    197197        self.CloseFile()
     
    229229        fmt = "{:.0f},{:.0f},{:.0f},{:.3f},{:.2f},{:.4f},{:.2f},{:.2f},{:.0f}"
    230230        for (
    231             h,k,l,mult,dsp,Fobs,sigFobs,Fcalc,FobsT,FcalcT,phase,eqlist,phaselist,Icorr,FFdict
    232             ) in histblk['Data']:
     231            h,k,l,mult,dsp,Fobs,sigFobs,Fcalc,FobsT,FcalcT,phase,Icorr
     232            ) in histblk['Data']['RefList']:
    233233            self.Write(fmt.format(h,k,l,dsp,Fobs,sigFobs,Fcalc,phase,mult))
    234234        self.CloseFile()
Note: See TracChangeset for help on using the changeset viewer.