Giter Club home page Giter Club logo

f1_minisectors's Introduction

F1_Minisectors

**** I am very inexperienced at coding and I apologize in advance for the messy scripts ****

**** If you find any ways to imporve this method please let me know as I would love to make it as good and as functional as it can be ****

This is a very basic method to plot the circuit map with a defined integer number of minisectors.

I have made a thread comparing my results to the data published by Formula1. It can be seen that the calculated minisectors offer a pretty good approximation for the actual minisectors, however it does seem to differ from the true result at times.

This is not corresponding to the minisectors that may show on the F1 app. My method divides the circuit up into equal length minisectors, the drivers in these sectors are then ranked in terms of highest average speed during each sector, and then plotting the minisector in the colour of the fastest driver with the added ability to label with the driver's number.

I have used a quicklaps threshold (usually about 103% of the best time in the session) which allows for more reliable data collection. This is because the fastf1 get_telemetry() function can return errors for certian slower laps if not used.

At present the minisectors script takes the drivers' best laptime from the session, with the added option to limit it to the drivers best lap in Q3.

I have used custom colour schemes that I have used along side the fastf1 package. You are welcome to import these or use alternatives.

My ultimate goal for this would for it to be a callable function with the driver numbers' as toggleable (on/off) labels built in to the function.

I would like to credit @jaspervhat on medium.com for the inspiration of the method to divide the circuit into minisectors; see this link https://medium.com/towards-formula-1-analysis/formula-1-data-analysis-tutorial-2021-russian-gp-to-box-or-not-to-box-da6399bd4a39; and of course @theOehrly brilliant fastf1 package https://github.com/theOehrly/Fast-F1.

f1_minisectors's People

Contributors

theollies avatar siddharth-tewari 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.