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
_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to