Ignore:
Timestamp:
May 16, 2018 10:31:09 AM (5 years ago)
Author:
vondreele
Message:

fix issue with deleted phases in Restraints - they are now deleted from Restraints tree if selected
fix issue of a phase not used in any histogram - any set refine flags cause crash in refinement
now a phase is included in phase list if it is Used in any histogrsm - fixes to GetUsedHistogramsAndPhases? in G2strIO and GetUsedHistogramsAndPhasesfromTree? in G2dataGUI.
also some weird business in G2spc - had to swap two routines (SGProd & GetLittleGrpOps?) before debug in Spyder would load GSAS-II.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r3378 r3390  
    41844184            Phase['pId'] = pId
    41854185            if Phase['Histograms']:
    4186                 if phase not in Phases:
    4187                     Phases[phase] = Phase
    41884186                for hist in Phase['Histograms']:
    41894187                    if 'Use' not in Phase['Histograms'][hist]:      #patch: add Use flag as True
    41904188                        Phase['Histograms'][hist]['Use'] = True         
    41914189                    if hist not in Histograms and Phase['Histograms'][hist]['Use']:
     4190                        if phase not in Phases:
     4191                            Phases[phase] = Phase
    41924192                        item = GetGPXtreeItemId(self,self.root,hist)
    41934193                        if item:
     
    77427742        if phaseName not in data:
    77437743            data[phaseName] = {}
    7744         G2restG.UpdateRestraints(G2frame,data[phaseName],phaseName)
     7744        G2restG.UpdateRestraints(G2frame,data,phaseName)
    77457745    elif G2frame.GPXtree.GetItemText(item) == 'Comments':
    77467746        SetDataMenuBar(G2frame,G2frame.dataWindow.DataCommentsMenu)
Note: See TracChangeset for help on using the changeset viewer.