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

Sequential refinement fixes where # of phases change

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.