Skip to main content

Convert track coordinates to percentages along a lap

Project description

workflow:

CREATE track map

  1. create an "expy" folder in the same directory as your current python file
  2. use generatelaparray.py to spit out a file with x, y, and z coordinates for the track. The data will appear in (circuit_short_name).json.
  3. manually delete extra data points and assign relevant ones to pit lane by moving them under "Pit Lane:"
  4. use parselaparray.py to check work (sample code to also go from file to array)

USE xy2pct

  1. use the function xy2pct(x, y, z, circuit_short_name) to convert any x, y, and z(optional) to a percentage along the track you specify in circuit_short_name. to find the variable, use the openf1 docs: https://api.openf1.org/v1/meetings?year=2026&country_name=Singapore and replace the country name with the one you want.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xy2pct-0.1.2.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xy2pct-0.1.2-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file xy2pct-0.1.2.tar.gz.

File metadata

  • Download URL: xy2pct-0.1.2.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for xy2pct-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2aee3ab10ae6d4909c25d4eee57392ad7bb509ece286c9395c05544ca6b46f3d
MD5 41668115b9b666529a5265042d3260b1
BLAKE2b-256 65208d6d3489bf8bec9466f3430960fa0f120319c6a130ff72c2a4b1a58d0d28

See more details on using hashes here.

Provenance

The following attestation bundles were made for xy2pct-0.1.2.tar.gz:

Publisher: python-package.yml on jusaaatin/xy2pct

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xy2pct-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: xy2pct-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for xy2pct-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a8f0edbdf741b3ee8616663d57ea0cca87f0149e26ed915b53db03b917db627d
MD5 3d4a58aab03858488e3027b45668e535
BLAKE2b-256 eb99beb9dcc24a8d21a3126510601a50afd4286d6e77f994304b275c0770ab67

See more details on using hashes here.

Provenance

The following attestation bundles were made for xy2pct-0.1.2-py3-none-any.whl:

Publisher: python-package.yml on jusaaatin/xy2pct

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page