eighthill / Slime_Mold_Simulation

A student project simulating smile mold🧫
MIT License
6 stars 0 forks source link

Testing file deposit_pheromone, move and get_pheromone_value_at #58

Closed Isabelle-Gbl closed 8 months ago

Isabelle-Gbl commented 8 months ago

Since our Version 2.0 is almost done we need to ensure that our methods are working fine before we can start to study how changes in the parameters effect the behavior of the agents.

We need one test file that checks if method deposit_pheromone, move and get_pheromone_value_at are working correct.

image image image please make sure that in your code version all parameters that are used are given to the function and that you give them a value within your testfunction, because otherwise the test will raise an error if we make some adjustments in the config file.

to simplify the process for you here are the imports you need: import numpy as np from slime_mold_simulation.simulation import METHOD HERE from slime_mold_simulation.config import ALL NEEDED Config Variables

those tests should check if each of the methods calculate the coordinates correctly. I put them together in this issue since they work with almost the same logic, so if one test is written it can be adjusted easily for the others. Watch out each of those methods have diffrent in- and outputs