Changeset 55 for trunk/GSASII.py


Ignore:
Timestamp:
Apr 29, 2010 12:27:45 PM (12 years ago)
Author:
vondreel
Message:

3rd try - reduce meatrices in integration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r53 r55  
    936936    def OnExportPattern(self,event):
    937937        dlg = wx.FileDialog(self, 'Choose output powder file name', '.', '',
    938             'xye file (*.xye)|*.xye',wx.FD_SAVE|wx.FD_OVERWRITE_PROMPT)
     938            'GSAS fxye file (*.fxye)|*.fxye|xye file (*.xye)|*.xye',
     939            wx.FD_SAVE|wx.FD_OVERWRITE_PROMPT)
    939940        if self.dirname:
    940941            dlg.SetDirectory(self.dirname)
    941942        try:
    942943            if dlg.ShowModal() == wx.ID_OK:
    943                 self.powderfile = dlg.GetPath()
    944                 G2IO.PowderxyeSave(self)
     944                powderfile = dlg.GetPath()
     945                if 'fxye' in powderfile:
     946                    G2IO.powderFxyeSave(self,powderfile)
     947                else:       #just xye
     948                    G2IO.powderXyeSave(self,powderfile)
    945949                self.dirname = dlg.GetDirectory()
    946950        finally:
Note: See TracChangeset for help on using the changeset viewer.