← Back to team overview

yade-users team mailing list archive

Re: [Question #694142]: Identifying clumps from a list of inputs to makeClumpCloud

 

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

Jérôme Duriez posted a new comment:
Hi,

Probably the creation of the cloud involves a given processing of your
list of pre-defined aggregates, in a given order (browsing source code
would help here). Then, knowing the final number of inserted aggregates
in the cloud, and knowing that list of pre-defined aggregates, you
should be able to sort out how many times each aggregate was inserted.


Note also that YADE Python objects may be added user-created attributes, eg:

b = Body()
b.someAttributeWhichDoesNotNormallyExist = 'SomeLabelWhichCouldBeUsefulToMeLaterOn' # useful maybe to distinguish between your different pre-defined aggregates ?

won't throw any error.
And you can re-catch b.someAttributeWhichDoesNotNormallyExist later on, checking which label is stored inside. I have no idea how such user-created attributes would survive through your workflow of cloud creation, but maybe that could be another idea to check

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