Skip to content

Commit 80202b9

Browse files
authored
Update ReadMe (#104)
1 parent a075e3b commit 80202b9

File tree

3 files changed

+41
-5
lines changed

3 files changed

+41
-5
lines changed

README.md

+41-5
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,56 @@
1+
![ci workflow](https://github.com/PedestrianDynamics/pedestrian-trajectory-analyzer/actions/workflows/ci.yml/badge.svg)
2+
13
# pedpy
24

35
`pedpy` is a python module for pedestrian movement analysis.
6+
It implements different measurement methods for density, velocity and flow.
47

58
This repo is a port from the original `JPSreport` to a Python implementation, and will provide the same functionalities.
69

710
## Getting started
8-
### Setup dependencies
11+
### Setup Python
912
For setting up your Python Environment a Python version >= 3.8 is recommended (our code is tested with 3.8).
1013
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.
1114

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+
```
1420

21+
If you want to install the current version in the repository which might be unstable, you can do so via:
1522
```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
1724
```
1825

1926
### 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+
![voronoi](figs/voronoi_diagrams.png)
55+
56+
![density](figs/density_comparison.png)

figs/density_comparison.png

750 KB
Loading

figs/voronoi_diagrams.png

329 KB
Loading

0 commit comments

Comments
 (0)