Changeset 4990 for trunk/GSASIImath.py


Ignore:
Timestamp:
Jul 4, 2021 9:11:29 AM (3 months ago)
Author:
toby
Message:

renumber ouches to keep unique; give timing on ouch 4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIImath.py

    r4910 r4990  
    318318                    G2fil.G2Print('ouch #4 stuck: chisq-new %.4g > chisq0 %.4g with lambda %.1g'%
    319319                        (chisq1,chisq0,lam), mode='warn')
     320                    if GSASIIpath.GetConfigValue('debug'):
     321                        print('Cycle %d: %.2fs' % (icycle,time.time()-time0))
    320322                    try:         # report highly correlated parameters from full Hessian, if we can
    321323                        info = {'num cyc':icycle,'fvec':M,'nfev':nfev,'lamMax':lamMax,
     
    410412        Bmat = Bmat/Anorm
    411413    except nl.LinAlgError: # this is unexpected. How did we get this far with a singular matrix?
    412         G2fil.G2Print('ouch #5 linear algebra error in making final v-cov matrix', mode='error')
     414        G2fil.G2Print('ouch #6 linear algebra error in making final v-cov matrix', mode='error')
    413415        psing = list(np.where(np.abs(np.diag(nl.qr(Amat)[1])) < 1.e-14)[0])
    414416        if not len(psing): # make sure at least the worst term is flagged
Note: See TracChangeset for help on using the changeset viewer.