Ignore:
Timestamp:
Aug 31, 2018 12:18:07 PM (3 years ago)
Author:
vondreele
Message:

fix transformation error for mag cells
disable formation of magnetic constraints - really needed?
fix SVD bug when a linAlg error occurs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIstrMain.py

    r3471 r3579  
    9292            result = G2mth.HessianSVD(G2stMth.errRefine,values,Hess=G2stMth.HessRefine,ftol=Ftol,xtol=Xtol,maxcyc=maxCyc,Print=ifPrint,
    9393                args=([Histograms,Phases,restraintDict,rigidbodyDict],parmDict,varyList,calcControls,pawleyLookup,dlg))
     94            if result[1] is None:
     95                IfOK = False
     96                covMatrix = []
     97                sig = len(varyList)*[None,]
     98                break
    9499            ncyc = result[2]['num cyc']+1
    95100        else:           #'numeric'
     
    147152            print ('**** Refinement failed - singular matrix ****')
    148153            if 'Hessian' in Controls['deriv type']:
     154                if result[1] is None:
     155                    IfOK = False
     156                    covMatrix = []
     157                    sig = len(varyList)*[None,]
     158                    break
    149159                num = len(varyList)-1
    150160                for i,val in enumerate(np.flipud(result[2]['psing'])):
Note: See TracChangeset for help on using the changeset viewer.