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

    Status: Open => Answered

Bruno Chareyre proposed the following answer:
> besides, I don't know why the list index is out of range.

Hi,
I have a small training to suggest, try to recognize this pattern in your code:

listOfIds=range(len(O.bodies))
O.bodies.append(Body())
print(listOfIds[0])

---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
/usr/bin/yadedaily in <module>()
----> 1 print(listOfIds[0])

IndexError: range object index out of range


Bruno

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

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to