← Back to team overview

yade-users team mailing list archive

Re: [Question #703940]: How can I remove Somengines from the existing O.engines?

 

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

Jan Stránský posted a new comment:
Hello,

It is documented in [1]:
"The O.engines sequence must be always assigned at once ..."

To delete specific engine, you simple assign new O.engines without it (possibly using already assigned engines), e.g. to delete some engine "in the middle" you could do
O.engines = O.engines[:2] + O.engines[3:] # deleting engine with index 2

Cheers
Jan

[1] https://yade-dem.org/doc/user.html#base-engines

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