← Back to team overview

yade-users team mailing list archive

RE : problem with PyRunner

 

in fact, running the script fails.


-------- Message d'origine--------
De: yade-users-bounces+franck.bourrier=cemagref.fr@xxxxxxxxxxxxxxxxxxx de la part de Václav Smilauer
Date: ven. 14/01/2011 17:27
À: Yade Users Group
Objet : Re: [Yade-users] problem with PyRunner
 
[sorry, not to yade-dev :-| ]

Are you saying that running yade-* scripts/test/law-test.py fails? Or do 
you run it in a different way (such as loading a simulation from the 
disk -- if you save simulation and load it, only the c++ data are 
preserved, but no python variables (including defined functions))?

Cheers, v.
>
> It seems that the command name is not recognized :
> For example in law-test.py you have :
> *...
> PyRunner(iterPeriod=1,command='addPlotData()'),
> ....
>
> def addPlotData():
> ....
>
>
> the error in the terminal is :
>
> /home/fbourrier/Documents/YADE2648/lib/yade-bzr2648/py/yade/__init__.pyc 
> in <module>()
> ----> 1
>       2
>       3
>       4
>       5
>
> NameError: name 'addPlotData' is not defined
>




References