Ignore:
Timestamp:
Oct 18, 2013 4:00:32 PM (8 years ago)
Author:
toby
Message:

rework exports for new types

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/exports/G2export_CIF.py

    r1102 r1115  
    15161516
    15171517        # the export process starts here
     1518        self.InitExport(event)
    15181519        # load all of the tree into a set of dicts
    15191520        self.loadTree()
    15201521        # create a dict with refined values and their uncertainties
    15211522        self.loadParmDict()
    1522         if self.SetupExport(event,                         # set export parameters
    1523                             AskFile=(self.mode=='simple')
    1524                             ): return
     1523        if self.ExportSelect(AskFile=(self.mode=='simple')):    # set export parameters
     1524            return
    15251525        # Someday: get restraint & constraint info
    15261526        #restraintDict = self.OverallParms.get('Restraints',{})
     
    18421842class ExportPhaseCIF(ExportCIF):
    18431843    '''Used to create a simple CIF of at most one phase. Uses exact same code as
    1844     :class:`ExportCIF` except that `self.mode` is set to "simple". Shows up in menu as
    1845     Quick CIF
     1844    :class:`ExportCIF` except that `self.mode` is set to "simple" in `self.InitExport`.
     1845    Shows up in menu as Quick CIF.
    18461846
    18471847    :param wx.Frame G2frame: reference to main GSAS-II frame
     
    18621862    '''Used to create a simple CIF containing diffraction data only. Uses exact same code as
    18631863    :class:`ExportCIF` except that `self.mode` is set to "simple" and `self.currentExportType`
    1864     is set to "single" or "powder" in `self.SetupExport`. Shows up in menus as Data-only CIF.
     1864    is set to "single" or "powder" in `self.InitExport`. Shows up in menus as Data-only CIF.
    18651865
    18661866    :param wx.Frame G2frame: reference to main GSAS-II frame
Note: See TracChangeset for help on using the changeset viewer.