Changeset 3390 for trunk/GSASIIstrIO.py


Ignore:
Timestamp:
May 16, 2018 10:31:09 AM (3 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/GSASIIstrIO.py

    r3377 r3390  
    439439        if Phase['General']['Type'] == 'faulted': continue      #don't use faulted phases!
    440440        if Phase['Histograms']:
    441             if phase not in Phases:
    442                 pId = phaseNames.index(phase)
    443                 Phase['pId'] = pId
    444                 Phases[phase] = Phase
    445441            for hist in Phase['Histograms']:
    446442                if 'Use' not in Phase['Histograms'][hist]:      #patch
    447443                    Phase['Histograms'][hist]['Use'] = True         
    448444                if hist not in Histograms and Phase['Histograms'][hist]['Use']:
     445                    if phase not in Phases:
     446                        pId = phaseNames.index(phase)
     447                        Phase['pId'] = pId
     448                        Phases[phase] = Phase
    449449                    try:
    450450                        Histograms[hist] = allHistograms[hist]
Note: See TracChangeset for help on using the changeset viewer.