BasisResearch / collab-creatures

Analyzing animal collaboration with Bayesian and causal inference.
4 stars 1 forks source link

fix indexing in `add_follower_foragers` #41

Closed rfl-urbaniak closed 7 months ago

rfl-urbaniak commented 9 months ago

Some values of num_foragers, as used in random_hungry_followers.ipynb lead to indexing errors. For instance:

follower_sim = rhf.Foragers(
    grid_size=60, num_foragers=6, num_frames=num_frames, num_rewards=30, grab_range=3
)

investigate and fix.