Skip to content

Commit

Permalink
Specify numpy as dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robadob committed Feb 27, 2024
1 parent ffe3169 commit 5440bbc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion episodes/profiling-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,9 @@ Other boxes within the diagram correspond to the initialisation of imports, or i

## Exercise 2: Predator Prey

Download and profile <a href="files/pred-prey/predprey.py" download>the Python predator prey model</a>, try to locate the function call(s) where the majority of execution time is being spent.
Download and profile <a href="files/pred-prey/predprey.py" download>the Python predator prey model</a>, try to locate the function call(s) where the majority of execution time is being spent

*This exercise uses the package `numpy`, it can be installed via `pip install numpy`.*

> The predator prey model is a simple agent-based model of population dynamics. Predators and prey co-exist in a common environment and compete over finite resources.
>
Expand Down
4 changes: 2 additions & 2 deletions learners/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ This course uses Python and was developed using Python 3.11, therefore it is rec

<!-- Todo suggest using a venv?-->

The non-core Python packages required by the course are `pytest`, `snakeviz` and `line_profiler` which can be installed via `pip`.
The non-core Python packages required by the course are `pytest`, `snakeviz`, `line_profiler` and `numpy` which can be installed via `pip`.

```sh
pip install pytest snakeviz line_profiler[all]
pip install pytest snakeviz line_profiler[all] numpy
```

:::::::::::::::::::::::::::::::::::::::::::::::::::

0 comments on commit 5440bbc

Please sign in to comment.