Changeset 2897


Ignore:
Timestamp:
Jul 3, 2017 12:29:33 PM (4 years ago)
Author:
toby
Message:

fix full CIF export bug

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branch/2frame/exports/G2export_CIF.py

    r2867 r2897  
    17231723        self.loadParmDict()
    17241724        if self.ExportSelect('ask'): return
     1725        if not self.filename:
     1726            print('No name supplied')
     1727            return
     1728        self.OpenFile()
    17251729        #if self.ExportSelect('default'): return
    17261730        # Someday: get restraint & constraint info
     
    20452049       
    20462050    def Exporter(self,event=None):
    2047         self.OpenFile()
    20482051        self._Exporter(event=event)
    20492052        self.CloseFile()
  • trunk/exports/G2export_CIF.py

    r2867 r2897  
    17231723        self.loadParmDict()
    17241724        if self.ExportSelect('ask'): return
     1725        if not self.filename:
     1726            print('No name supplied')
     1727            return
     1728        self.OpenFile()
    17251729        #if self.ExportSelect('default'): return
    17261730        # Someday: get restraint & constraint info
     
    20452049       
    20462050    def Exporter(self,event=None):
    2047         self.OpenFile()
    20482051        self._Exporter(event=event)
    20492052        self.CloseFile()
Note: See TracChangeset for help on using the changeset viewer.