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_csv.py

    r2433 r2819  
    9797
    9898        if mode == 'w':
    99             print('Phase '+str(phasenam)+' written to file '+str(self.fullpath))
     99            print('Phase '+phasenam+' written to file '+self.fullpath)
    100100        self.CloseFile()
    101101   
     
    154154                        line += ","
    155155                self.Write(line)
    156             print('Phase '+str(phasenam)+' written to file '+str(self.fullpath))
     156            print('Phase '+phasenam+' written to file '+self.fullpath)
    157157        self.CloseFile()
    158158
     
    210210            self.filename = os.path.join(self.dirname,fileroot + self.extension)
    211211            self.Writer(hist)
    212             print('Histogram '+str(hist)+' written to file '+str(self.fullpath))
     212            print('Histogram '+hist+' written to file '+self.fullpath)
    213213
    214214class ExportMultiPowderCSV(G2IO.ExportBaseclass):
     
    253253            digitList += [(13,3),]
    254254            csvData.append(histblk['Data'][1])
    255             print('Histogram '+str(hist)+' written to file '+str(self.fullpath))
     255            print('Histogram '+hist+' written to file '+self.fullpath)
    256256        self.OpenFile()
    257257        WriteList(self,headList)
     
    338338                        self.Write(fmt.format(h,k,l,pos,Fobs,Fcalc,phase,mult,s,g,FWHM,Prfo,i))
    339339        self.CloseFile()
    340         print(str(hist)+'reflections written to file '+str(self.fullpath))
     340        print(hist+'reflections written to file '+self.fullpath)
    341341
    342342class ExportSingleCSV(G2IO.ExportBaseclass):
     
    384384                    self.Write(fmt.format(h,k,l,pos,Fobs,Fcalc,phase,mult,i))
    385385        self.CloseFile()
    386         print(str(hist)+' written to file '+str(self.fullname))                       
     386        print(hist+' written to file '+self.fullname)                       
    387387
    388388class ExportStrainCSV(G2IO.ExportBaseclass):
     
    427427                self.Write(fmt2.format(dat[1],dat[0],dat[2]))           
    428428        self.CloseFile()
    429         print(str(hist)+' written to file '+str(self.fullpath))
     429        print(hist+' written to file '+self.fullpath)
Note: See TracChangeset for help on using the changeset viewer.