← Back to team overview

yade-users team mailing list archive

Re: [Question #232060]: ValueError:

 

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

    Status: Answered => Open

pingyang.1019@xxxxxxx is still having a problem:
thank you teacher
I use Yade 0.95.0 . I want to calculate 12.py ,but error occurs.
How to do?





At 2013-07-08 20:21:26,"Jan Stránský" <question232060@xxxxxxxxxxxxxxxxxxxxx> wrote:
>Your 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
>>
>
>-- 
>If this answers your question, please go to the following page to let us
>know that it is solved:
>https://answers.launchpad.net/yade/+question/232060/+confirm?answer_id=0
>
>If you still need help, you can reply to this email or go to the
>following page to enter your feedback:
>https://answers.launchpad.net/yade/+question/232060
>
>You received this question notification because you asked the question.

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