Ignore:
Timestamp:
May 4, 2017 9:14:19 AM (5 years ago)
Author:
vondreele
Message:

fix printing of nonascii characters (e.g. "umlaut-o") in file names, etc. in exporters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/exports/G2export_pwdr.py

    r2152 r2819  
    5959        self.Write(('INS  1PRCF12%15.6e%15.6e%15.6e%15.6e   ')%(Inst['X'][1],Inst['Y'][1],Inst['SH/L'][1]/2.,Inst['SH/L'][1]/2.))
    6060        self.CloseFile()
    61         print('Parameters from '+str(hist)+' written to file '+str(prmname))
     61        print('Parameters from '+hist+' written to file '+prmname)
    6262        return prmname
    6363
     
    104104            prmname = self.WriteInstFile(hist,histblk['Instrument Parameters'][0])
    105105            self.Writer(hist,prmname=prmname)
    106             print('Histogram '+str(hist)+' written to file '+str(self.fullpath))
     106            print('Histogram '+hist+' written to file '+self.fullpath)
    107107
    108108class ExportPowderXYE(G2IO.ExportBaseclass):
     
    156156            self.filename = os.path.join(self.dirname,fileroot + self.extension)
    157157            self.Writer(hist)
    158             print('Histogram '+str(hist)+' written to file '+str(self.fullpath))
     158            print('Histogram '+hist+' written to file '+self.fullpath)
Note: See TracChangeset for help on using the changeset viewer.