Changeset 3487


Ignore:
Timestamp:
Jul 20, 2018 9:47:00 AM (3 years ago)
Author:
vondreele
Message:

fix a phoenix/classic issue with SetChecked? vs SetCheckedItems? in G2ctrlGUI
Quick Cif now can export multiple phases - each data is named as phase name (not gpx name)

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIctrlGUI.py

    r3485 r3487  
    16351635    def _SetAll(self,event):
    16361636        'Set all viewed choices on'
    1637         self.clb.SetChecked(range(0,len(self.filterlist),self.Stride))
     1637        if 'phoenix' in wx.version():
     1638            self.clb.SetCheckedItems(range(0,len(self.filterlist),self.Stride))
     1639        else:
     1640            self.clb.SetChecked(range(0,len(self.filterlist),self.Stride))
    16381641        self.stride.SetValue('1')
    16391642        self.Stride = 1
  • trunk/exports/G2export_CIF.py

    r3465 r3487  
    20652065            self.Write(' ')
    20662066            self.Write(70*'#')
    2067             WriteCIFitem(self.fp, 'data_'+self.CIFname)
     2067            WriteCIFitem(self.fp, 'data_'+phaseOnly)
    20682068            #phaseblk = self.Phases[phaseOnly] # pointer to current phase info
    20692069            # report the phase info
     
    24982498        # create a dict with refined values and their uncertainties
    24992499        self.loadParmDict()
    2500         self.multiple = False
     2500        self.multiple = True
    25012501        self.currentExportType = 'phase'
    25022502        if self.ExportSelect('ask'): return
    25032503        self.OpenFile()
    2504         self._Exporter(event=event,phaseOnly=self.phasenam[0])
     2504        for name in self.phasenam:
     2505            self._Exporter(event=event,phaseOnly=name)  #TODO: repeat for magnetic phase
    25052506        self.CloseFile()
    25062507
Note: See TracChangeset for help on using the changeset viewer.