← Back to team overview

yade-users team mailing list archive

[Question #232060]: ValueError:

 

New question #232060 on Yade:
https://answers.launchpad.net/yade/+question/232060

Hi teachers!
     " ValueError                                Traceback (most recent call last)
/home/py/yade/lib/yade-pingyang/py/yade/__init__.pyc in refreshEvent(self)
    191         def zxySlot(self): self.setViewAxes((0,-1,0),(1,0,0))
    192         def refreshEvent(self):
--> 193                 self.refreshValues()
    194                 self.activateControls()
    195         def deactivateControls(self):

/home/py/yade/lib/yade-pingyang/py/yade/__init__.pyc in refreshValues(self)
    264                         self.iterLabel.setText('#%ld / %ld, %.1f/s %s'%(O.iter,stopAtIter,self.iterPerSec,subStepInfo))
    265                 if t!=float('inf'):
--> 266                         s=int(t); ms=int(t*1000)%1000; us=int(t*1000000)%1000; ns=int(t*1000000000)%1000
    267                         self.virtTimeLabel.setText(u'%03ds%03dm%03dμ%03dn'%(s,ms,us,ns))
    268                 else: self.virtTimeLabel.setText(u'[ ∞ ] ?!')

ValueError: cannot convert float NaN to integer". 

What means is it ?  How to do?

Thank you!


-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.