← Back to team overview

yade-users team mailing list archive

[Question #194918]: change blockedDOFs of utils.box

 

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

I want to change state.blockedDOFs from 'xyzXYZ' to 'zXYZ'.
When I do this se3 and vel and some aabb entries changed to NaN in simulation inspection. When running the script error message occurs:

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)

/home/me/YADE/YADEgit20120420/lib/yade-2012-04-17.git-2847a08/py/yade/__init__.pyc in refreshEvent(self)
    190         def zxySlot(self): self.setViewAxes((0,-1,0),(1,0,0))
    191         def refreshEvent(self):
--> 192                 self.refreshValues()
    193                 self.activateControls()
    194         def deactivateControls(self):

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

ValueError: cannot convert float NaN to integer

How can I solve this problem?

Regards,

Christian

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