Changeset 3487 for trunk/exports


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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.