Changeset 5664
- Timestamp:
- Sep 30, 2023 9:39:55 AM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASIIstrMath.py ¶
r5663 r5664 4634 4634 dMdvh *= Wt 4635 4635 if dlg: 4636 GoOn = dlg.Update( Histogram['Residuals']['wR'],newmsg='Hessian for histogram %d\nAll data Rw=%8.3f%s'%(hId,Histogram['Residuals']['wR'],'%'))4636 GoOn = dlg.Update(int(Histogram['Residuals']['wR']),newmsg='Hessian for histogram %d\nAll data Rw=%8.3f%s'%(hId,Histogram['Residuals']['wR'],'%')) 4637 4637 if type(GoOn) is tuple: 4638 4638 if not GoOn[0]: … … 4663 4663 4664 4664 if dlg: 4665 GoOn = dlg.Update( Histogram['Residuals']['wR'],newmsg='Hessian for histogram %d Rw=%8.3f%s'%(hId,Histogram['Residuals']['wR'],'%'))4665 GoOn = dlg.Update(int(Histogram['Residuals']['wR']),newmsg='Hessian for histogram %d Rw=%8.3f%s'%(hId,Histogram['Residuals']['wR'],'%')) 4666 4666 if type(GoOn) is tuple: 4667 4667 if not GoOn[0]: … … 4756 4756 Histogram['Residuals']['wRmin'] = min(100.,100.*ma.sqrt(Histogram['Residuals']['Nobs']/Histogram['Residuals']['sumwYo'])) 4757 4757 if dlg: 4758 GoOn = dlg.Update( Histogram['Residuals']['wR'],newmsg='For histogram %d Rw=%8.3f%s'%(hId,Histogram['Residuals']['wR'],'%'))4758 GoOn = dlg.Update(int(Histogram['Residuals']['wR']),newmsg='For histogram %d Rw=%8.3f%s'%(hId,Histogram['Residuals']['wR'],'%')) 4759 4759 if type(GoOn) is tuple: 4760 4760 if not GoOn[0]: … … 4906 4906 Next += next 4907 4907 if dlg: 4908 GoOn = dlg.Update( Histogram['Residuals']['wR'],newmsg='For histogram %d Rw=%8.3f%s'%(hId,Histogram['Residuals']['wR'],'%'))4908 GoOn = dlg.Update(int(Histogram['Residuals']['wR']),newmsg='For histogram %d Rw=%8.3f%s'%(hId,Histogram['Residuals']['wR'],'%')) 4909 4909 if type(GoOn) is tuple: 4910 4910 if not GoOn[0]: … … 4923 4923 if dlg: 4924 4924 if hasattr(dlg,'SetHistogram'): dlg.SetHistogram(-1,'overall') 4925 GoOn = dlg.Update( Rw,newmsg='%s%8.3f%s'%('All data Rw =',Rw,'%'))4925 GoOn = dlg.Update(int(Rw),newmsg='%s%8.3f%s'%('All data Rw =',Rw,'%')) 4926 4926 if type(GoOn) is tuple: 4927 4927 if not GoOn[0]: … … 4944 4944 Nobs += len(pVals) 4945 4945 M = np.concatenate((M,np.sqrt(pWt)*pVals)) 4946 GoOn = dlg.Update( 100*pSum/np.sum(M**2),newmsg='Restraints')4946 GoOn = dlg.Update(int(100.*pSum/np.sum(M**2)),newmsg='Restraints') 4947 4947 Histograms['RestraintSum'] = pSum 4948 4948 Histograms['RestraintTerms'] = len(pVals)
Note: See TracChangeset
for help on using the changeset viewer.