Closed colinhanrahan closed 2 months ago
@amuller26 Review, please.
In sugarscape.py
at line 975, I think it needs to be
if configuration["agentDecisionModelTribalFactor"][1] > 1:
configuration["agentDecisionModelTribalFactor"][1] = 1
elif configuration["agentDecisionModelTribalFactor"][0] < 0:
configuration["agentDecisionModelTribalFactor"][0] = -1
It was throwing TypeError originally.
In
sugarscape.py
at line 975, I think it needs to beif configuration["agentDecisionModelTribalFactor"][1] > 1: configuration["agentDecisionModelTribalFactor"][1] = 1 elif configuration["agentDecisionModelTribalFactor"][0] < 0: configuration["agentDecisionModelTribalFactor"][0] = -1
It was throwing TypeError originally.
Good catch, thanks! I also added a sort()
.
agentDecisionModelTribalFactor
is currently a paired endowment (with other decision model-related traits), but it could be a regular endowment instead.0 will make agents disregard their own tribe and 1 will make them disregard other tribes, like
selfishnessFactor
.