Changeset 2779


Ignore:
Timestamp:
Apr 13, 2017 11:34:59 AM (7 years ago)
Author:
toby
Message:

unicode bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/exports/G2export_map.py

    r1261 r2779  
    6565                self.filename = os.path.splitext(filename)[1] + "_" + mapData['MapType'] + str(i) + self.extension
    6666            self.OpenFile()
    67             self.Write("Map of Phase "+str(phasenam)+" from "+str(self.G2frame.GSASprojectfile))
     67            self.Write(u"Map of Phase "+phasenam+u" from "+self.G2frame.GSASprojectfile)
    6868            # get cell parameters & print them
    6969            cellList,cellSig = self.GetCell(phasenam)
     
    7777                        self.Write(str(rho[i,j,k]))
    7878            self.CloseFile()
    79             print('map from Phase '+str(phasenam)+' written to file '+str(self.fullpath))
     79            print(u'map from Phase '+phasenam+u' written to file '+self.fullpath)
    8080
    8181class ExportMapCCP4(G2IO.ExportBaseclass):
     
    146146                self.Write(x,'f')
    147147            self.CloseFile()
    148             print('map from Phase '+str(phasenam)+' written to file '+str(self.fullpath))
     148            print(u'map from Phase '+phasenam+u' written to file '+self.fullpath)
Note: See TracChangeset for help on using the changeset viewer.