Changeset 2874 for trunk


Ignore:
Timestamp:
Jun 24, 2017 9:33:04 AM (6 years ago)
Author:
toby
Message:

Sequential refinement fixes where # of phases change

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIImapvars.py

    r2546 r2874  
    628628                msg += _FormatConstraint(constrDict[rel],fixedList[rel])
    629629                msg += '\nNot used: ' + notused + '\n'
    630             if varied > 0 and varied != len(VarKeys(constrDict[rel])):
     630            elif varied > 0 and varied != len(VarKeys(constrDict[rel])):
    631631                msg += "\nNot all variables refined in constraint:\n\t"
    632632                msg += _FormatConstraint(constrDict[rel],fixedList[rel])
    633633                msg += '\nNot refined: ' + notvaried + '\n'
    634634    # if there were errors found, go no farther
    635     if msg:
     635    if msg and SeqHist is not None:
     636        print ' *** Sequential refinement: ignoring constraint definition(s): ***'
     637        print msg
     638        msg = ''
     639    elif msg:
    636640        print ' *** ERROR in constraint definitions! ***'
    637641        print msg
  • trunk/GSASIIstrMain.py

    r2854 r2874  
    251251    pIds = []
    252252    for phase in Phases:
     253        if histogram not in Phases[phase]['Histograms']: continue
    253254        if Phases[phase]['Histograms'][histogram]['Use']:
    254255            pIds.append(str(Phases[phase]['pId']))
Note: See TracChangeset for help on using the changeset viewer.