Changeset 3860


Ignore:
Timestamp:
Mar 22, 2019 6:40:27 PM (3 years ago)
Author:
toby
Message:

warn but continue when histogram in phase list but not in tree

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r3859 r3860  
    44074407        histoList,histIdList = self.GetHistogramNamesID(['PWDR','HKLF'])
    44084408
     4409        badnum = 0
    44094410        for phase in phaseData:
    44104411            Phase = phaseData[phase]
     
    44184419                        Phases[phase] = Phase
    44194420                    if hist not in Histograms and Phase['Histograms'][hist]['Use']:
     4421                        if hist not in histIdList:
     4422                            if badnum == 0:
     4423                                print('Error: hist {} not found in histIdList. Deleted?'.format(hist))
     4424                            badnum += 1
     4425                            continue
    44204426                        item = histIdList[hist]
    44214427                        if item:
     
    44294435                            print(u'For phase "'+phase+
    44304436                                  u'" unresolved reference to histogram "'+hist+u'"')
     4437        if badnum > 1: print('  ...hist not in histIdList error occured {} times'.format(badnum))
    44314438        G2obj.IndexAllIds(Histograms=Histograms,Phases=phaseData)
    44324439        return Histograms,Phases
Note: See TracChangeset for help on using the changeset viewer.