Changeset 4903 for trunk/GSASIImath.py


Ignore:
Timestamp:
May 17, 2021 11:23:03 AM (5 months ago)
Author:
vondreele
Message:

fix 2 issues in HessianLSQ for SVN LinAlgErrors?
fix a typo in G2plot for SASD plot display
change GetTthAzmDsp? --> GeTthAzmDsp2 in G2plot & G2Image
comment old GetTthAzmDsp? code - fails in recent python/numpy versions; replaced by GetTthAzmDsp2
change GetTthAzmG --> GetTthAzm2 in G2image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIImath.py

    r4840 r4903  
    263263            Amatlam = Amat*(1.+np.eye(Amat.shape[0])*lam)
    264264            try:
     265                Nzeros = 1
    265266                Ainv,Nzeros = pinv(Amatlam,xtol)    # Moore-Penrose SVD inversion
    266267            except nl.LinAlgError:
     
    412413        psing = list(np.where(np.abs(np.diag(nl.qr(Amat)[1])) < 1.e-14)[0])
    413414        if not len(psing): # make sure at least the worst term is flagged
     415            d = np.abs(np.diag(nl.qr(Amat)[1]))       
    414416            psing = [np.argmin(d)]
    415417        Amat, indices, Yvec = dropTerms(psing, Amat, indices, Yvec)
Note: See TracChangeset for help on using the changeset viewer.