Question #267162 on Yade changed:
https://answers.launchpad.net/yade/+question/267162
Jan Stránský proposed the following answer:
Hi Elaheh,
> Thank you for reply, The txt file is created for me but all of the numbers
> in the txt file are "nan" .
>
not all of them, just scroll to the end of the file :-)
the reason is here:
def addPlotData():
if not isinstance(O.bodies[-1].shape,Wall):
plot.addData(); return # plot.addPlotData() with no argument will
add nan values
...
use
def addPlotData():
if not isinstance(O.bodies[-1].shape,Wall):
return # just return without empty addPlotData call
...
instead and it should work ok
cheers
Jan
--
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 : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp