yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #02796
Re: [yade-dev] How to access neighboring grains
-
To:
Yade Development Group <yade-dev@xxxxxxxxxxxxxxxxxxx>
-
From:
Václav Šmilauer <eudoxos@xxxxxxxx>
-
Date:
Mon, 21 Dec 2009 08:53:05 +0100
-
In-reply-to:
<e09b2f670912201523x29f91848v734d2771bc8cbd44@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.19) Gecko/20090105 Lightning/0.8 Thunderbird/2.0.0.19 Mnenhy/0.7.6.666
> I tried
>
> O.interactions.withBody(id).geom['normal']
> or
> O.interactions.withBody(id).id1
>
> but I get
>
> 'list' object has no attribute 'geom'
Read some python tutorial and find out what is a list. This is really
basic. It is a list of interactions.
Cheers, Vaclav
References