← Back to team overview

yade-dev team mailing list archive

[Bug 780931] Re: Interaction list not updated when erase body

 

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 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).


Follow ups

References