Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

henri-gasc/nordic-combined

Repository files navigation

Nordic Combined

Code organization

You can put the PDFs with the data in pdf_results and use the extract Python script to write the data from the PDFs to extracted.

You can use main.py to run a simulation.

athelete.py contains the code pertaining to each athlete.
In render.py, you will find the base class for rendering and showing the simulation, whereas the code for the simulation proper is in simulation.py.
utils.py has utility functions, things too small to be in a separate file.

plot.py and parse.py are scripts used to plot things when needed. (for example, the evolution of the correctness rate for a single race for plot.py.)

Ideas

Here are some ideas on how to visualize the simualtion:

  1. Still image. Work, but not very clear.
  2. Video like time_vs_distance. Better(?) but takes very long to render. It took me about >2h to render the simple simulation.
  3. Video like athlete_distance. Only works on video format. Thanks to multiprocessing is fast => need ffmpeg to fuse the images in a single video after.

Slipstream effect

With energy level

Each athlete has maximum speed they can achieve, and minimum speed at which they do not tire themselves at. In slipstream, the athlete behind do not tire as fast as without (can even regenerate speed if slow enough).

Without energy level

Get a boost for 5 seconds after 2 seconds in slipstream.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages