Changeset 2543


Ignore:
Timestamp:
Nov 21, 2016 2:04:17 PM (5 years ago)
Author:
toby
Message:

deal a bit better with Unicode file names in CIF exports

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/exports/G2export_CIF.py

    r2529 r2543  
    13691369            self.cifdefs.SetTitle('Edit CIF settings')
    13701370            vbox = wx.BoxSizer(wx.VERTICAL)
    1371             vbox.Add(wx.StaticText(self.cifdefs, wx.ID_ANY,'Creating file '+str(self.filename)))
     1371            vbox.Add(wx.StaticText(self.cifdefs, wx.ID_ANY,'Creating file '+self.filename))
    13721372            but = wx.Button(self.cifdefs, wx.ID_ANY,'Edit CIF Author')
    13731373            but.Bind(wx.EVT_BUTTON,EditAuthor)
     
    16511651        #=================================================================
    16521652        if phaseOnly: #====Phase only CIF ================================
    1653             print('Writing CIF output to file '+str(self.filename))
     1653            print('Writing CIF output to file '+self.filename)
    16541654            self.OpenFile()
    16551655            oneblock = True
     
    16641664            return
    16651665        elif histOnly: #====Histogram only CIF ================================
    1666             print('Writing CIF output to file '+str(self.filename))
     1666            print('Writing CIF output to file '+self.filename)
    16671667            self.OpenFile()
    16681668            hist = histOnly
     
    18401840        # Start writing the CIF - single block
    18411841        #======================================================================
    1842         print('Writing CIF output to file '+str(self.filename)+"...")
     1842        print('Writing CIF output to file '+self.filename+"...")
    18431843        self.OpenFile()
    18441844        if self.currentExportType == 'single' or self.currentExportType == 'powder':
     
    20272027        self.CloseFile()
    20282028        print("...export completed")
    2029         print('file '+str(self.fullpath))
     2029        print('file '+self.fullpath)
    20302030        # end of CIF export
    20312031
     
    20562056        self._Exporter(histOnly=hist)
    20572057        if mode == 'w':
    2058             print('CIF written to file '+str(self.fullpath))
     2058            print('CIF written to file '+self.fullpath)
    20592059        self.CloseFile()
    20602060       
Note: See TracChangeset for help on using the changeset viewer.