Code Monkey home page Code Monkey logo

pedpy's Introduction

PedPy Logo

PyPI Latest Release Nightly Release PyPI - Python Version DOI License ci workflow Code style: black Imports: isort Documentation Status OpenSSF Best Practices fair-software.eu

PedPy: Analysis of pedestrian dynamics based on trajectory files.

PedPy is a python module for pedestrian movement analysis. It implements different measurement methods for density, velocity and flow.

If you use PedPy in your work, please cite it using the following information from zenodo:

DOI

Getting started

Setup Python

For setting up your Python Environment a Python version >= 3.10 is recommended (our code is tested with 3.10 and 3.11). To avoid conflicts with other libraries/applications the usage of virtual environments is recommended, see Python Documentation for more detail.

Installing PedPy

To install the latest stable version of PedPy and its dependencies from PyPI:

python3 -m pip install pedpy

If you want to install the current version in the repository which might be unstable, you can do so via:

python3 -m pip install --pre --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ pedpy

Usage

For first time users, have a look at the getting started notebook, as it shows the first steps to start an analysis with PedPy. A more detailed overview of PedPy is demonstrated in the user guide notebook. The fundamental diagram notebook shows how to use PedPy for computing the fundamental diagram of a series of experiments.

Interactive online session

If you want to try out PedPy for the first time, you can find an interactive online environments for both notebooks here:

  • Getting started: Binder
  • User guide: Binder
  • Fundamental diagram: Binder

Note: The execution might be slower compared to a local usage, as only limited resources are available. It is possible to also upload different trajectory files and run the analysis completely online, but this might not be advisable for long computations.

Local usage of the notebooks

For local usage of the notebooks, you can either download the notebooks and demo files from the GitHub repository or clone the whole repository with:

git clone https://github.com/PedestrianDynamics/pedpy.git

For using either of the notebook some additional libraries need to be installed, mainly for plotting. You can install the needed libraries with:

python3 -m pip install jupyter matplotlib

Afterward, you can start a jupyter server with:

jupyter notebook

After navigating to one of the notebooks, you can see how the library can be used for different kinds of analysis.

Some examples how the computed values can be visualized are also shown in the notebooks, e.g., density/velocity profiles, fundamental diagrams, N-T-diagrams, etc.

voronoi

density

pedpy's People

Contributors

schroedtert avatar christianhirt avatar chraibi avatar ozaq avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.