Changeset 4761 for trunk/GSASIImath.py
- Timestamp:
- Jan 11, 2021 1:57:49 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASIImath.py ¶
r4760 r4761 213 213 info = {'num cyc':0,'fvec':M2,'nfev':1,'lamMax':0,'psing':[],'SVD0':0} 214 214 info['msg'] = 'no variables: skipping refinement\n' 215 info.update({'Converged':True, 'DelChi2':0, 'Xvec': [], 'chisq0':chisq00})216 return [x0, [],info]215 info.update({'Converged':True, 'DelChi2':0, 'Xvec':None, 'chisq0':chisq00}) 216 return [x0,np.array([]),info] 217 217 indices = range(n) 218 218 while icycle < maxcyc: … … 364 364 Bmat,Nzeros = setHcorr(info,Amat,xtol,problem=False) 365 365 info.update({'num cyc':icycle,'fvec':M,'nfev':nfev,'lamMax':lamMax,'SVD0':Nzeros,'psing':psing_prev, 366 'Converged':ifConverged, 'DelChi2':deltaChi2, 'Xvec':XvecAll, 'chisq0':chisq00}) 366 'Converged':ifConverged, 'DelChi2':deltaChi2, 'chisq0':chisq00}) 367 if icycle > 0: info.update({'Xvec':XvecAll}) 367 368 return [x0,Bmat,info] 368 369 except nl.LinAlgError:
Note: See TracChangeset
for help on using the changeset viewer.