Changeset 1198


Ignore:
Timestamp:
Jan 15, 2014 1:57:29 PM (8 years ago)
Author:
toby
Message:

fix bug with repeated exports

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r1172 r1198  
    19291929        self.powderDict = {}
    19301930        self.xtalDict = {}
     1931        self.Phases = {}
     1932        self.Histograms = {}
    19311933        if self.G2frame.PatternTree.IsEmpty(): return # nothing to do
    19321934        histType = None       
     
    19561958                if name.startswith(histType):
    19571959                    if self.Histograms.get(name): # there is already an item with this name
     1960                        print('Histogram name '+str(name)+' is repeated. Renaming')
    19581961                        if name[-1] == '9':
    19591962                            name = name[:-1] + '10'
    19601963                        elif name[-1] in '012345678':
    1961                             name = name[:-1] + str(int(name[:-1])+1)
     1964                            name = name[:-1] + str(int(name[-1])+1)
    19621965                        else:                           
    19631966                            name += '-1'
Note: See TracChangeset for help on using the changeset viewer.