No project description provided
Project description
Formula Data Processing Library
The python windarab loader
UNIT TESTS WIP
Formula data processing library or fdplib for short is a library for accessing the custom text file format exported by Windarab by Bosch Motorsports
Installation
FDPLib only requires tqdm (used as status bar for loading large data files)
To install FDPLib use pip:
python3 -m pip install fdplib
Usage
In order to use the main functionality of this library, import the fdplib module in your python code
import fdplib
From this a DarabData object can be created by passing the textfile name to the constructor
import fdplib.darab as darab
data = darab.DarabData("<FILENAME>.txt")
With this object, data can be easily accessed using the following methods. First, to get all of the variables in the dataset do data.list_vars()
The main method that you will use to interact with the data is data.get_var("<VARIABLE_NAME>")
This method returns a list of all the datapoints associated with the variable. Likewise data.get_var_np("<VARIABLE_NAME>")
returns a numpy array of the data.
There is an optional boolean parameter called timeseries for both of the previously mentioned methods. If set to True this instead returns the data and the time values associated with it as a 2D array, much in the way matlab does.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file fdplib-1.1.tar.gz
.
File metadata
- Download URL: fdplib-1.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e015cc185f8716f67d2aed21d335c1e2da7663879e1ac501411f5939f1d9cf1 |
|
MD5 | 5b8237ecc2c785adb9ee09599ee75a8c |
|
BLAKE2b-256 | c029e45490f77e56b1bb3739d0cbf9f4aeb264777a658e5c9b9c01495ebe9d26 |
File details
Details for the file fdplib-1.1-py3-none-any.whl
.
File metadata
- Download URL: fdplib-1.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02518b40c89f3a1b01e59ff0ebc13042ff79ae63198cab01ba980744c40f16af |
|
MD5 | e869ee1fbb8c05a0cb6f3cbf6fda6c44 |
|
BLAKE2b-256 | 1025b4a94207024cce687ce3bda73f3f1df5438510e62bf7274f0ff9d9e0d662 |