Changeset 4047 for trunk/GSASIIstrIO.py


Ignore:
Timestamp:
Jul 1, 2019 5:22:10 PM (2 years ago)
Author:
toby
Message:

remove reflections if hist dropped from phase

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIstrIO.py

    r4021 r4047  
    24472447            Vec,x,maxH = Phases[phase]['General']['SuperVec']
    24482448        pId = Phases[phase]['pId']
     2449        for histogram in Histograms:
     2450            if histogram not in HistoPhase and phase in Histograms[histogram]['Reflection Lists']:
     2451                #remove previously created reflection list if histogram is removed from phase
     2452                #print("removing ",phase,"from",histogram)
     2453                del Histograms[histogram]['Reflection Lists'][phase]
    24492454        histoList = list(HistoPhase.keys())
    24502455        histoList.sort()
Note: See TracChangeset for help on using the changeset viewer.