mars0i / popco2

Cultural transmission with analogy biases.
GNU General Public License v3.0
3 stars 0 forks source link

prevent sharing of person ids (was: utterance map has multiple utterances per <speaker, listener> per tick) #14

Closed mars0i closed 10 years ago

mars0i commented 10 years ago

On each tick, there should be no more than one utterance per <speaker, listener> pair, but groups2.clj produces more.

mars0i commented 10 years ago

The problem is misdescribed, I believe. The problem is that in groups2.clj I used forms such as (repeatedly 25 #(pers/new-person-from-old c1 :c2)) to create multiple persons. This line, for example, creates 25 person all named ":c2". So what I was seeing was multiple persons with the same id. So the bug was in groups2.clj. But sharing names--that's bad. Can't have people with the same id. Maybe I should add something that enforces that rule.