Changeset 5476


Ignore:
Timestamp:
Jan 16, 2023 12:04:59 PM (11 months ago)
Author:
toby
Message:

.Update float fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIImath.py

    r5464 r5476  
    40234023        if Rcf < 5.:
    40244024            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]
    40264026        if not GoOn or Ncyc > 10000:
    40274027            break
     
    41834183        if Rcf < 5.:
    41844184            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]
    41864186        if not GoOn or Ncyc > 10000:
    41874187            break
     
    44944494                    icntr = jnd
    44954495            Unique.append(icntr)
    4496         dlg.Update(ind,newmsg='Map peak no. %d processed'%ind) 
     4496        dlg.Update(int(ind),newmsg='Map peak no. %d processed'%ind) 
    44974497    return Unique
    44984498
     
    51585158                        schedule.set_range(x0,best_state.cost/2.)                       
    51595159        if dlg:
    5160             GoOn = dlg.Update(min(100.,best_state.cost*100),
     5160            GoOn = dlg.Update(int(min(100.,best_state.cost*100)),
    51615161                newmsg='%s%8.5f, %s%d\n%s%8.4f%s'%('Temperature =',schedule.T, \
    51625162                    'Best trial:',bestn,  \
     
    54955495   
    54965496    def MCSAcallback(x, f,accept):
    5497         return not pgbar.Update(min(100,f*100),
     5497        return not pgbar.Update(int(min(100,f*100)),
    54985498            newmsg='%s%8.4f%s'%('MC/SA Residual:',int(f*100),'%'))[0]
    54995499
Note: See TracChangeset for help on using the changeset viewer.