yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #16059
[Question #659888]: 'PyRunner' module is unable to call self-defined function
New question #659888 on Yade:
https://answers.launchpad.net/yade/+question/659888
I have installed the trunk version of Yade and I met two weird things when I tried to run example cases.
The first thing is that the example scripts cannot run directly if I don add "from yade import wrapper" to the beginning and "wrapper." to relevant instances. Since I installed yade totally according to the installation guide, I can't figure out why the example scripts cannot run without modification.
The second thing is that the self-defined function added to O.engines by "PyRunner" module cannot run propperly. It simply shows "name 'XXXXX' is not define" on screen. It seems OK if the command of PyRunner is a simple sentence such as command="print 'Hello World' ". I don't know why the selfdefined function cannot work here.
Hope you can help find out the reason!
Thank you very much
--
You received this question notification because your team yade-users is
an answer contact for Yade.