Skip to main content

A Python package for speed-based calculation of F-ZERO GX.

Project description

Gxscalc

This is a Python package for speed-based calculation of F-ZERO GX.

Requirements

This package requires numpy and pandas. Also, speed data files created by my AviUtl plugin is required as input.

Installation

Gxscalc is available on PyPI:

$ pip install gxscalc

Usage

from gxscalc import mtp

mtp('./sample/sa70_on.txt', './sample/sa70_off.txt') #=> (1224.330134264905, -2.4656191600475066)

gxscalc.mtp(on, off, *, std=5, rng=10)

Calculate the approximated MT point from two speed data files of deceleration. The accuracy compared to Naegleria's spreadsheet is within about 3 km/h.

on: str
File path of speed data for deceleration while going on the accelerator.
off: str
File path of speed data for deceleration while going off the accelerator.
std: numeric
Standard deviation of gaussian window for moving average.
rng: numeric
Values farther than std*rng will not be used for moving average.
returns: (float, float)
Returns the tuple of (MT point [km/h], Acceleration at MT point [km/h/f]).

Notice

The input speed data files are assumed to be created by my AviUtl plugin. The files should include frame numbers and separators should be spaces (default settings of the plugin). './sample/sa70_on.txt' and './sample/sa70_off.txt' are sample input files, which are data of Space Angler at 70%.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/cycloawaodorin/gxscalc.

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

gxscalc-0.0.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

gxscalc-0.0.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file gxscalc-0.0.1.tar.gz.

File metadata

  • Download URL: gxscalc-0.0.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for gxscalc-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0474cbb560e2ca0e7e09fbb972321ba2d5c0d6eb5e0a107e1d24732e9d31c96a
MD5 6e94f0389ff1530f73acc481f936f773
BLAKE2b-256 8e9e9837067bcdd052d020386b4c3f332879b5a33514bf19cc54f612e045b9cc

See more details on using hashes here.

File details

Details for the file gxscalc-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: gxscalc-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for gxscalc-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 478c35455a29bc8b2042bebd3881141dda490e1670a689f30208ecc590d2396b
MD5 f2ff96ab24864d1f533bcc72738a2f61
BLAKE2b-256 98f3ee5a612949e4dc74c643b19ac5504bc7743415b2425bd5fa288cb406a9ab

See more details on using hashes here.

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