Python program to label signal data
Project description
OKN LABEL PYTHON PACKAGE LIBRARY MANUAL
Python program to label the signal.csv and produce signal.updated.csv which contains label information such as is_chained_okn and num_chained_okn etc.
Installation requirements and guide
Anaconda
To install this program, Anaconda python distributing program and Anaconda Powershell Prompt are needed.
If you do not have Anaconda, please use the following links to download and install:
Download link: https://www.anaconda.com/products/distribution
Installation guide link: https://docs.anaconda.com/anaconda/install/
PIP install
To install oknlabel, you have to use Anaconda Powershell Prompt.
After that, you can use the oknlabel from any command prompt.
In Anaconda Powershell Prompt:
pip install oknlabel
Usage guide
Example usage
oknlabel -i (input csv file) -fl (frame length in rows) -r (rule_info/rule_info_file) -o (output csv file)
Only -i flag is mandatory.
The rest -fl, -r and -o are optional flags.
-fl flag
To change the frame length of window which unit is number of rows. Example
oknlabel -i (input csv file) -fl 100
-r flag
To use the custom rules instead of default rules which are 2 min_okn_chain_length and 3 min_okn_per_window.
It can be string input or file input.
Example
oknlabel -i (input csv file) -r min_okn_chain_length:2,min_okn_per_window:3
(or)
oknlabel -i (input csv file) -r ./development/okn_detection_rule.json
-o flag
To change the default output directory location. The default directory will be the same level as input file and output file name will be signal.updated.csv.
Testing
If you want to test this program, you can clone this repository, install oknlabel and then open any command prompt or terminal.
In the terminal, go to ../oknlabel/development directory then run the following command:
oknlabel -i signal.csv
That will produce signal.updated.csv in that directory.
To upgrade version
In Anaconda Powershell Prompt,
pip install -U oknlabel
or
pip install --upgrade oknlabel
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
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 oknlabel-1.1.2.tar.gz.
File metadata
- Download URL: oknlabel-1.1.2.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
457aeb9ec15c37d3fe032ffbfd4e291898d5835bee7e120726787c06c0d0ad11
|
|
| MD5 |
c24b57ac877599d8b9229bed98b14563
|
|
| BLAKE2b-256 |
a7aed815573421a6ff6c2eb9ab112d400762eb6311028974bc3f1c2c3fac28b4
|
File details
Details for the file oknlabel-1.1.2-py3-none-any.whl.
File metadata
- Download URL: oknlabel-1.1.2-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0890508416f275aa61c82efc2c58895c92603d2c9015a975b7566e293a2e9c1b
|
|
| MD5 |
74ebbc6ae643308151b74f92799b454c
|
|
| BLAKE2b-256 |
e77fcbf1805e1506bc7a3651c2bfa65726f125c6fddd391e9832b20a4a455b5e
|