yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #08234
Re: [Question #235866]: problem with PyRunner when importing Yade in python
Question #235866 on Yade changed:
https://answers.launchpad.net/yade/+question/235866
Status: Answered => Solved
Alexander Eulitz [Eugen] confirmed that the question is solved:
Thanks. this works.
command="mySim.storeData()"
is sufficient if you create the object of the class in which yade is used in the file of the class as it is shown in my code above.
the second solution:
import __builtin__
__builtin__.mySim = mySim
is necessary if you work with diffrent files in your programm.
In my case there is a main program that handles an optimisation algorithm which passes simulation parameters to the MyYadeSim class. (the object of MyYadeSim in the main programm is named mySim)
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.