Code Monkey home page Code Monkey logo

dashboard's Introduction

Streamlit App DOI fair-software.eu

JuPedSim-Dashboard

Show statistics and make plots extracted from jpscore-simulations and experimental data.

Screen Shot 2022-03-25 at 20 47 58

Use

This app can be used online:

https://go.fzj.de/dashboard

or locally by running

streamlit run app.py

To install the requirements use:

pip install -r requirements.txt

Draw geometries

To draw geometries on trajectory-plots, try to connect all lines, such that they form a closed polygon. This is only necessary if you want to visualize the geometry with jpsvis.

You can download your drawing as an xml file according to jupedsim's format

It is possible to draw:

  • Lines
  • Rectangles

Lines and rectangle can be rotated and scaled.

To try out: https://go.fzj.de/geometry

Ressources

NOTE: The script tries to exctract the unit of the data from the trajectory file. A good idea might be to convert the trajetories before using with this script

or add a header with the unit information. For example a line starting with #unit: cm

Profiles

The density profile uses the speed of the pedestrians calculated by the Weidmann diagram. Therefore, for jpscore-simulations, use the optional_output-option in the inifile:

<file location="bottleneck_traj.txt" />
    <optional_output speed="TRUE"/>
</trajectories>

NT-curve

NT-curves and flow at lines (transitions or area_L) are calculates be testing for every agent, if croses the line. Therefore, define in the geometry transitions, such that the pedestrian fully pass them.

dashboard's People

Contributors

chraibi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

dashboard's Issues

Time Series

When I try to use the time series option, the dashboard reloads a couple of times and then the dashboard is reset to the starting screen and trajectories have to be chosen again. But sometimes it worked for me well.

Refactoring: Separate GUI-part from Functionality

The gui-code is tightly interwinded with the functionality of the dashboard.

  • Consider creating a GUI-class
  • Reduce the responsibilities of main().
  • Upload more than 1 trajectory file
  • If no geometry is given, allow drawing it in a dedicated tab.

Time developement of jam

  • Jam in front of the bottleneck
  • Jam is desolving
  • More people are coming -> jam is going up
  • Dessolving
  • going up again ...

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.