yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #04828
Re: [Question #166809]: remove functions from PyRunner
Question #166809 on Yade changed:
https://answers.launchpad.net/yade/+question/166809
Anton Gladky proposed the following answer:
Hi,
I would not recommend you to remove an engine. I prefer to "disable"
not needed engines.
Every engine has a flag "dead", by default it is false.
You can add a label to your PyRunner, for example
(PyRunner.....,label="calmLabel")
Then, when you do not need this engine any more, just do:
calmLabel.dead=True
and after that your engine will be "switched off" and ignored by Yade.
For more options with PyRunner, please, see:
https://www.yade-dem.org/doc/yade.wrapper.html#yade.wrapper.PeriodicEngine
Anton
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.