Ignore:
Timestamp:
Nov 7, 2013 12:12:55 PM (12 years ago)
Author:
toby
Message:

major constraints revision

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/GSASIIstrMain.py

    r1125 r1138  
    5858    calcControls = {}
    5959    calcControls.update(Controls)           
    60     constrDict,fixedList = G2stIO.GetConstraints(GPXfile)
     60    constrDict,fixedList = G2stIO.GetConstraints(GPXfile) # better to pass in Histograms,Phases
    6161    restraintDict = G2stIO.GetRestraints(GPXfile)
    6262    Histograms,Phases = G2stIO.GetUsedHistogramsAndPhases(GPXfile)
     63    G2obj.IndexAllIds(Histograms=Histograms,Phases=Phases)
    6364    if not Phases:
    6465        print ' *** ERROR - you have no phases! ***'
     
    9192    try:
    9293        groups,parmlist = G2mv.GroupConstraints(constrDict)
     94        #G2mv.debug = True # DEBUG
    9395        G2mv.GenerateConstraints(groups,parmlist,varyList,constrDict,fixedList)
     96        #G2mv.debug = False # DEBUG
    9497    except:
    9598        print ' *** ERROR - your constraints are internally inconsistent ***'
     
    98101        if warnmsg: print 'Warnings',warnmsg
    99102        raise Exception(' *** Refine aborted ***')
     103    #raise Exception(' *** Refine DEBUG ***') # DEBUG
    100104    # # check to see which generated parameters are fully varied
    101105    # msg = G2mv.SetVaryFlags(varyList)
Note: See TracChangeset for help on using the changeset viewer.