1
0
mirror of https://github.com/gsi-upm/soil synced 2024-12-22 16:28:11 +00:00
soil/examples/rabbits
J. Fernando Sánchez 73282530fd Big refactor v0.30
All test pass, except for the TestConfig suite, which is not too critical as the
plan for this version onwards is to avoid configuration as much as possible.
2023-04-09 04:19:24 +02:00
..
rabbit_improved_sim.py Big refactor v0.30 2023-04-09 04:19:24 +02:00
rabbits_basic_sim.py Big refactor v0.30 2023-04-09 04:19:24 +02:00
README.md Fix conditionals 2022-10-17 19:29:39 +02:00

There are two similar implementations of this simulation.

  • basic. Using simple primites
  • improved. Using more advanced features such as the time module to avoid unnecessary computations (i.e., skip steps), and generator functions.

The examples can be run directly in the terminal, and they accept command like arguments. For example, to enable the CSV exporter and the Summary exporter, while setting max_time to 100 and seed to CustomSeed:

python rabbit_agents.py  --set max_time=100 --csv -e summary  --set 'seed="CustomSeed"'

To learn more about how this functionality works, check out the soil.easy function.