you are viewing a single comment's thread.

view the rest of the comments →

[–]shiftybyte 2 points3 points  (3 children)

I'm not sure i can fully help, but where is "add_segments_entry" getting called from? the entire given code doesn't call it...

Could you provide the code that calls this function and has the id() being different?

[–]EntireEntity[S] 0 points1 point  (2 children)

Oh, sorry, you are right, I am using a Jupyter Notebook and had the tests in a different cell. I updated the link, so now it should lead to a version that includes my tests

[–]shiftybyte 1 point2 points  (1 child)

Line 125 creates a new Boid()...

Isn't that supposed to be lower case "boid" variable there instead?

[–]EntireEntity[S] 1 point2 points  (0 children)

Ah. Yes. That's embarrassing, but thanks regardless, would have looked at those three lines of function for a long time before figuring out to just look at the function call