Changeset 5476
- Timestamp:
- Jan 16, 2023 12:04:59 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIImath.py
r5464 r5476 4023 4023 if Rcf < 5.: 4024 4024 break 4025 GoOn = pgbar.Update( Rcf,newmsg='%s%8.3f%s\n%s %d'%('Residual Rcf =',int(Rcf),'%','No.cycles = ',Ncyc))[0]4025 GoOn = pgbar.Update(int(Rcf),newmsg='%s%8.3f%s\n%s %d'%('Residual Rcf =',int(Rcf),'%','No.cycles = ',Ncyc))[0] 4026 4026 if not GoOn or Ncyc > 10000: 4027 4027 break … … 4183 4183 if Rcf < 5.: 4184 4184 break 4185 GoOn = pgbar.Update( Rcf,newmsg='%s%8.3f%s\n%s %d'%('Residual Rcf =',int(Rcf),'%','No.cycles = ',Ncyc))[0]4185 GoOn = pgbar.Update(int(Rcf),newmsg='%s%8.3f%s\n%s %d'%('Residual Rcf =',int(Rcf),'%','No.cycles = ',Ncyc))[0] 4186 4186 if not GoOn or Ncyc > 10000: 4187 4187 break … … 4494 4494 icntr = jnd 4495 4495 Unique.append(icntr) 4496 dlg.Update(in d,newmsg='Map peak no. %d processed'%ind)4496 dlg.Update(int(ind),newmsg='Map peak no. %d processed'%ind) 4497 4497 return Unique 4498 4498 … … 5158 5158 schedule.set_range(x0,best_state.cost/2.) 5159 5159 if dlg: 5160 GoOn = dlg.Update( min(100.,best_state.cost*100),5160 GoOn = dlg.Update(int(min(100.,best_state.cost*100)), 5161 5161 newmsg='%s%8.5f, %s%d\n%s%8.4f%s'%('Temperature =',schedule.T, \ 5162 5162 'Best trial:',bestn, \ … … 5495 5495 5496 5496 def MCSAcallback(x, f,accept): 5497 return not pgbar.Update( min(100,f*100),5497 return not pgbar.Update(int(min(100,f*100)), 5498 5498 newmsg='%s%8.4f%s'%('MC/SA Residual:',int(f*100),'%'))[0] 5499 5499
Note: See TracChangeset
for help on using the changeset viewer.