yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #11246
Re: [Question #267162]: store data
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
Follow ups
References