eighthill / Slime_Mold_Simulation

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

Testing file reflect_boundary #57

Closed Isabelle-Gbl closed 7 months ago

Isabelle-Gbl commented 7 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 reflect_boundary is working correct.

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 reflect_boundary from slime_mold_simulation.config import HEIGHT,WIDTH

the test file should check, if the angles for the agents are calculated correctly if the agents would be out of array in the next move. There is probably a already a problem since the agents get reflected on two sides only: image