← Back to team overview

yade-users team mailing list archive

Re: [Question #702962]: How to disable function in PyRunner

 

Question #702962 on Yade changed:
https://answers.launchpad.net/yade/+question/702962

    Status: Open => Answered

Karol Brzezinski proposed the following answer:
Hi,

You can set some lab for a specific PyRunner, and at some point of
simulation use this label as reference to your PyRunner, e.g
PyRunner(..., label="myEngine")

For example you can disable this engine by setting myEngine.dead = True
[1]


Best wishes, 
KB
[1] https://yade-dem.org/doc/yade.wrapper.html?highlight=pyrunner#yade.wrapper.PyRunner

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.