Changeset 4990
- Timestamp:
- Jul 4, 2021 9:11:29 AM (21 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIImath.py
r4910 r4990 318 318 G2fil.G2Print('ouch #4 stuck: chisq-new %.4g > chisq0 %.4g with lambda %.1g'% 319 319 (chisq1,chisq0,lam), mode='warn') 320 if GSASIIpath.GetConfigValue('debug'): 321 print('Cycle %d: %.2fs' % (icycle,time.time()-time0)) 320 322 try: # report highly correlated parameters from full Hessian, if we can 321 323 info = {'num cyc':icycle,'fvec':M,'nfev':nfev,'lamMax':lamMax, … … 410 412 Bmat = Bmat/Anorm 411 413 except nl.LinAlgError: # this is unexpected. How did we get this far with a singular matrix? 412 G2fil.G2Print('ouch # 5linear 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') 413 415 psing = list(np.where(np.abs(np.diag(nl.qr(Amat)[1])) < 1.e-14)[0]) 414 416 if not len(psing): # make sure at least the worst term is flagged -
trunk/GSASIIstrMath.py
r4981 r4990 3423 3423 MPpool.terminate() 3424 3424 if badPeak: 3425 print ('ouch # 4bad profile coefficients yield negative peak width; some reflections skipped')3425 print ('ouch #7 bad profile coefficients yield negative peak width; some reflections skipped') 3426 3426 if GSASIIpath.GetConfigValue('Show_timing',False): 3427 3427 print ('getPowderProfile t=%.3f'%(time.time()-starttime))
Note: See TracChangeset
for help on using the changeset viewer.