yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #07630
Re: [Bug 780931] Re: Interaction list not updated when erase body
When you iterate over the list of interactions (at the end of the
code), it finds some of them.
But if you add in the scope something like :
print O.interactions[i.id1,i.id2]
It says: "IndexError: No such interaction"
So, as I understand, it means, that the list is not fully updated, but
the interaction does not persist any more.
Anton
On Thu, May 12, 2011 at 1:13 AM, Luc Scholtès <lscholtes63@xxxxxxxxx> wrote:
> Thank you Anton for suggestion but it does not work. Even with another
> step (a step was already ran after deletion if you have a look at line
> 45), I still have the following error:
>
> File "eraseSpheres.py", line 49, in <module>
> if isinstance(O.bodies[i.id1].shape,Sphere) and isinstance(O.bodies[i.id2].shape,Sphere):
> AttributeError: 'NoneType' object has no attribute 'shape'
>
> I knew for the additional step to make the deletion effective because I
> used to do it in a previous version of the code (2300 I think). That's
> why I thought there was a bug in the new version... Unfortunately, I
> tried to have a look at the files (BodyContainer and
> InteractionContainer), but they are totally different to the ones from
> version 2300 and I could not really have an idea where to look for...
>
> --
> You received this bug notification because you are subscribed to Yade.
> https://bugs.launchpad.net/bugs/780931
>
> Title:
> Interaction list not updated when erase body
>
> Status in Yet Another Dynamic Engine:
> New
>
> Bug description:
> Seems that interaction loop does not update the interaction list when
> a body is removed from the simulation (see attached file).
>
--
You received this bug notification because you are a member of Yade
developers, which is the registrant for Yade.
https://bugs.launchpad.net/bugs/780931
Title:
Interaction list not updated when erase body
Status in Yet Another Dynamic Engine:
New
Bug description:
Seems that interaction loop does not update the interaction list when
a body is removed from the simulation (see attached file).
References