jbrea / FoodCachingExperiments.jl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simulate Food Caching Experiments in Julia and Python

The code in this repository defines a domain specific language to describe food caching experiments. This repository is a submodule of FoodCaching.

  • Examples of experimental protocols are in src/protocols.
  • Raw and processed experimental results with real food caching birds are in data.
  • Run julia scripts/process_experiments.jl to regenerate the processed results from the raw experimental results.
  • An example of a model that can be simulated on these protocols is in examples/dummy_model.jl. For more examples see FoodCachingModels.
  • See examples/dummy_model.py for how to use this from python.

To run the code in this repository, download julia (at least version 1.7) and activate and instantiate this project. This can be done in a julia REPL with the following lines of code:

using Pkg
# download code
Pkg.develop(url = "https://github.com/jbrea/FoodCachingExperiments.jl")
# activate project
cd(joinpath(Pkg.devdir(), "FoodCachingExperiments"))
Pkg.activate(".")
# install dependencies
Pkg.instantiate()

# run a script
include(joinpath("scripts", "process_experiments.jl"))

using FoodCachingExperiments

About

License:MIT License


Languages

Language:Julia 100.0%