nkremerh / sugarscape

Development repository for the Digital Terraria Lab implementation of the Sugarscape agent-based societal simulation.
https://github.com/digital-terraria-lab/sugarscape
MIT License
7 stars 11 forks source link

Adds sort to every config option that represents a range of values #94

Closed amuller26 closed 2 months ago

amuller26 commented 2 months ago

I was not sure if I should have added the debugMode statements to the selfishnessFactor and tribalFactor.

nkremerh commented 2 months ago

Good work!

@colinhanrahan please test for correctness.

I will tidy up some debug message wording then merge once I get the green light.

colinhanrahan commented 2 months ago

Numerical correctness looks good, but I'll do a little more testing.

If we're committing to proper config verification—and this would be a separate feature—there are plenty of other config settings that cannot take negative values. We should either disclose this in the README or verify them beforehand, or both.

nkremerh commented 2 months ago

@amuller26 Ready to merge?

amuller26 commented 2 months ago

@nkremerh yes.

nkremerh commented 2 months ago

Numerical correctness looks good, but I'll do a little more testing.

If we're committing to proper config verification—and this would be a separate feature—there are plenty of other config settings that cannot take negative values. We should either disclose this in the README or verify them beforehand, or both.

New item: would you like to add this more thorough checking?

amuller26 commented 2 months ago

@nkremerh I created the Kanban card.