LABSS / PROTON-T

Simulation of recruitment to terrorism
MIT License
1 stars 2 forks source link

topics creation fails at random #54

Closed mariopaolucci closed 5 years ago

mariopaolucci commented 5 years ago

I got this situation under commit https://github.com/LABSS/PROTON-T/commit/77d8f6f9f9c46f2d34557a4d1ee4dfba032241fc after adding a print in

(website 6312): "Non integration"
observer> show topics-list
observer: ["Non integration" "Institutional distrust" "Collective relative deprivation"]
observer> show count websites
observer: 1
observer> show one-of topics with [ topic-name = "Non integration" ]
observer: nobody
observer> show [topic-name] of  topics 
observer: []
observer> setup-topics
observer> show [topic-name] of  topics 
observer: ["Institutional distrust" "Non integration" "Collective relative deprivation"]
observer> show one-of topics with [ topic-name = "Non integration" ]
observer: (topic 6313)`

This is strange, as the code should have gone through setup, but it didn't create the topics. Or is there some code destroying them after creation?

mariopaolucci commented 5 years ago

Ok, pinned it down to the change in world size. But why?

mariopaolucci commented 5 years ago

found: resizing the world kills the turtles. Oh, no, turtles!