GithubHelp home page GithubHelp logo

davide97l / running-performance-calculator Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 0.0 1.03 MB

Calculate how your running pace and time would change given different elevation gain, altitude and temperature.

Home Page: https://davideliu.com/2022/02/09/running-performance-calculator-altitude-elevation-gain-and-temperature/

License: MIT License

Python 100.00%
sport fitness-app converter-app converter running sports-stats

running-performance-calculator's Introduction

Running Performance Calculator: Altitude, Elevation Gain, and Temperature

Open in Streamlit

๐Ÿ‘‰ Have you ever wondered if you ran 10km at 2000m altitude, how fast would you run the same distance at lower altitudes? How would elevation gain and temperature affect your performance? ๐Ÿค”

๐Ÿ‘‰ The goal of this application is to calculate how your running pace and time would change given different elevation gain, altitude and temperature.

Features

  • Support for default or custom distances
  • Compute pace and time according to elevation gain, altitude and temperature
  • Clean and user-friendly interface
  • The author has over 10 years or running experience including track, road, and trail running

Usage

Clone this repository and set up the environment:

git clone https://github.com/davide97l/running-performance-calculator
cd running-performance-calculator
pip install streamlit

Run it locally:

streamlit run streamlit_app.py

Support

If you found this project interesting please support me by giving it a โญ, I would really appreciate it ๐Ÿ˜€

running-performance-calculator's People

Contributors

davide97l avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

running-performance-calculator's Issues

Running Predictor

Hi,

I'm doing a Ragnar Relay next week and I'm trying to use your code for my team. Problem is - I don't know how to code :) Do you have any interest in helping me set up a page to help my team predict our finish times?

Thanks in advance.

Typo in Report section

hey davide

I was trying out your app wondering how elevation gain affects pace.

But I also came upon what I think is a typo in the report section:

Pace (mile/km)

I'm guessing its supposed to say "min/mile" as its right next to the km pace. Figured I'd let you know, see screenshot below:

image

I believe this is the relevant code:
https://github.com/davide97l/running-performance-calculator/blob/main/utils.py#L226

Also looking at the code I see you link to some of the sources for the calculations. I think it would be cool to have that in the web app too or maybe a summary of how the different factors effect your speed.

Anyways thanks for a nice tool, I enjoyed playing around with it and geeking out on the code!

streamlit.errors.DuplicateWidgetID

Looks like the Running Calculator has an error that's preventing it from functioning. Error code should be visible on your end. Otherwise, here is the traceback messaging.

File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 562, in _run_script
exec(code, module.dict)
File "/app/running-performance-calculator/streamlit_app.py", line 23, in
utils.show()
File "/app/running-performance-calculator/utils.py", line 190, in show
alt_t = column2.number_input("Write the altitude here (m)", 0, 10000, 0, key='target')
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/runtime/metrics_util.py", line 231, in wrap
result = callable(*args, **kwargs)
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/elements/number_input.py", line 170, in number_input
ctx=ctx,
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/elements/number_input.py", line 337, in _number_input
ctx=ctx,
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/runtime/state/widgets.py", line 202, in register_widget
user_key,

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.