|
| 1 | + |
| 2 | + |
1 | 3 | # pedpy
|
2 | 4 |
|
3 | 5 | `pedpy` is a python module for pedestrian movement analysis.
|
| 6 | +It implements different measurement methods for density, velocity and flow. |
4 | 7 |
|
5 | 8 | This repo is a port from the original `JPSreport` to a Python implementation, and will provide the same functionalities.
|
6 | 9 |
|
7 | 10 | ## Getting started
|
8 |
| -### Setup dependencies |
| 11 | +### Setup Python |
9 | 12 | For setting up your Python Environment a Python version >= 3.8 is recommended (our code is tested with 3.8).
|
10 | 13 | To avoid conflicts with other libraries/applications the usage of virtual environments is recommended, see [Python Documentation](https://docs.python.org/3/library/venv.html) for more detail.
|
11 | 14 |
|
12 |
| -Now the needed libraries for `pedpy` need to be installed. |
13 |
| -You can use the provided `requirements.txt` to do so: |
| 15 | +### Installing pedpy |
| 16 | +To install the latest **stable** version of `pedpy` and its dependencies from PyPI: |
| 17 | +```bash |
| 18 | +python3 -m pip install pedpy |
| 19 | +``` |
14 | 20 |
|
| 21 | +If you want to install the current version in the repository which might be unstable, you can do so via: |
15 | 22 | ```bash
|
16 |
| -pip install -r requirements.txt |
| 23 | +python3 -m pip install --pre --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ pedpy |
17 | 24 | ```
|
18 | 25 |
|
19 | 26 | ### Usage
|
20 |
| -The usage of the current state of the porting process can be seen in [demo notebook](usage.ipynb). |
| 27 | + |
| 28 | +The usage of `pedpy` is demonstrated in the [demo notebook](usage.ipynb). |
| 29 | +You can either download the notebook and [demo files](demos/bottleneck/) |
| 30 | +from the GitHub repository or clone the whole repository with: |
| 31 | + |
| 32 | +```bash |
| 33 | +git clone https://github.com/PedestrianDynamics/pedestrian-trajectory-analyzer.git |
| 34 | +``` |
| 35 | + |
| 36 | +For using the notebook some additional libraries need to be installed, mainly |
| 37 | +for plotting. |
| 38 | +You can install the needed libraries with: |
| 39 | + |
| 40 | +```bash |
| 41 | +python3 -m pip install jupyter matplotlib |
| 42 | +``` |
| 43 | + |
| 44 | +Afterwards you can start a jupyter server with: |
| 45 | +```bash |
| 46 | +jupyter notebook |
| 47 | +``` |
| 48 | + |
| 49 | +After navigating to the notebook, you can see how the library can be used |
| 50 | +for different kinds of analysis. |
| 51 | + |
| 52 | +Some examples how the computed values can be visualized are also shown in the notebook, e.g., density/velocity profiles, fundamental diagrams, N-T-diagrams, etc. |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
0 commit comments