Ignore:
Timestamp:
Oct 20, 2015 11:37:34 AM (6 years ago)
Author:
toby
Message:

fix export bugs; prevent exception if Cancel is used when locating a missing image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/exports/G2export_FIT2D.py

    r1997 r2018  
    2525import GSASIIpwd as G2pwd
    2626
    27 class ExportPowderCSV(G2IO.ExportBaseclass):
    28     '''Used to create a csv file for a powder data set
     27class ExportPowderCHI(G2IO.ExportBaseclass):
     28    '''Used to create a CHI file for a powder data set
    2929
    3030    :param wx.Frame G2frame: reference to main GSAS-II frame
     
    4343        self.OpenFile(filename)
    4444        histblk = self.Histograms[TreeName]
    45         self.Write(os.path.split(self.fullpath)[1])
     45        self.Write(str(TreeName)[5:]) # drop 'PWDR '
    4646        self.Write("2-Theta Angle (Degrees)")
    4747        self.Write("Intensity")
Note: See TracChangeset for help on using the changeset viewer.