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
.)
Here are some ideas on how to visualize the simualtion:
- Still image. Work, but not very clear.
- Video like time_vs_distance. Better(?) but takes very long to render. It took me about >2h to render the simple simulation.
- 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.
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).
Get a boost for 5 seconds after 2 seconds in slipstream.