Changeset 3299


Ignore:
Timestamp:
Feb 28, 2018 11:59:19 PM (4 years ago)
Author:
toby
Message:

Add Q to powder CSV export

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/exports/G2export_csv.py

    r3230 r3299  
    2626import GSASIImath as G2mth
    2727import GSASIIpwd as G2pwd
     28import GSASIIlattice as G2lat
    2829
    2930def WriteList(obj,headerItems):
     
    178179        self.OpenFile(filename)
    179180        histblk = self.Histograms[TreeName]
    180         WriteList(self,("x","y_obs","weight","y_calc","y_bkg"))
    181         digitList = 2*((13,3),) + ((13,5),) + 2*((13,3),)
     181        Parms = self.Histograms[TreeName]['Instrument Parameters'][0]
     182        WriteList(self,("x","y_obs","weight","y_calc","y_bkg","Q"))
     183        digitList = 2*((13,3),) + ((13,5),) + 3*((13,3),)
    182184        for vallist in zip(histblk['Data'][0],
    183185                       histblk['Data'][1],
     
    186188                       histblk['Data'][4],
    187189                       #histblk['Data'][5],
     190                       2*np.pi/G2lat.Pos2dsp(Parms,histblk['Data'][0])
    188191                       ):
    189192            line = ""
Note: See TracChangeset for help on using the changeset viewer.