Convert track coordinates to percentages along a lap
Project description
xy2pct
A tool that pinpoints the percentage along a predetermined track of given coordinates.
Installation
To install the Python package, run:
pip install xy2pct
Workflow
Create track map
- use the
src/xy2pct/expyfolder for generated track files - use generatelaparray.py to spit out a file with x, y, and z coordinates for the track. The data will appear in
src/xy2pct/expy/(circuit_short_name).txt. - manually delete extra data points and assign relevant ones to pit lane by moving them under "Pit Lane:"
- use parselaparray.py to check work (sample code to also go from file to array)
Use xy2pct
def xy2pct(x, y, z, circuit_short_name) -> [onTrack, percentage]
- 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, and then find the name beside
circuit_short_name.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xy2pct-0.2.3.tar.gz.
File metadata
- Download URL: xy2pct-0.2.3.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
062a7b14063fc3c079c728fd501c193144e55d7956bfe37c74591e490c0a2190
|
|
| MD5 |
2e39caaf0d4d5611e661c53bdd2a74a1
|
|
| BLAKE2b-256 |
8e9081bd52c10360b61ae6788013dd001509087b99c278177caa5ce7ea06da78
|
Provenance
The following attestation bundles were made for xy2pct-0.2.3.tar.gz:
Publisher:
python-package.yml on jusaaatin/xy2pct
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xy2pct-0.2.3.tar.gz -
Subject digest:
062a7b14063fc3c079c728fd501c193144e55d7956bfe37c74591e490c0a2190 - Sigstore transparency entry: 2234239234
- Sigstore integration time:
-
Permalink:
jusaaatin/xy2pct@41da384eacb814f0eaa17cd3d30374b73f2ae2ec -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jusaaatin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-package.yml@41da384eacb814f0eaa17cd3d30374b73f2ae2ec -
Trigger Event:
push
-
Statement type:
File details
Details for the file xy2pct-0.2.3-py3-none-any.whl.
File metadata
- Download URL: xy2pct-0.2.3-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bba2de2d8a74d045368e63ce93fe175aca1d0c526ee343cf98968302e59ba860
|
|
| MD5 |
760113c96611e58d5f8de0949602023f
|
|
| BLAKE2b-256 |
5d0976eb50f88692620830aa2c0d18cccc7c657434e5465c4daa67a4f43ecf75
|
Provenance
The following attestation bundles were made for xy2pct-0.2.3-py3-none-any.whl:
Publisher:
python-package.yml on jusaaatin/xy2pct
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xy2pct-0.2.3-py3-none-any.whl -
Subject digest:
bba2de2d8a74d045368e63ce93fe175aca1d0c526ee343cf98968302e59ba860 - Sigstore transparency entry: 2234239965
- Sigstore integration time:
-
Permalink:
jusaaatin/xy2pct@41da384eacb814f0eaa17cd3d30374b73f2ae2ec -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jusaaatin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-package.yml@41da384eacb814f0eaa17cd3d30374b73f2ae2ec -
Trigger Event:
push
-
Statement type: