yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #07832
Re: [Question #232060]: ValueError:
Question #232060 on Yade changed:
https://answers.launchpad.net/yade/+question/232060
Status: Open => Answered
Jan Stránský proposed the following answer:
Hello,
if you get such type of error, it is always useful to post also the script
(ideally with deleted unimportant parts) reproducing your problem or to
describe slightly more in detail under which circumstances the error
occurred, e.g. what you typed in the console, what version of Yade and
system you are using etc.. It will help us to help you :-) So please
describe more what you did and hopefully we will be able to help
cheers
Jan
2013/7/8 pingyang.1019@xxxxxxx <question232060@xxxxxxxxxxxxxxxxxxxxx>
> 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.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.