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
Metadata
Release files for oknlabel 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| oknlabel-1.1.2.tar.gz | 11.6 kB | Without provenance | Details for oknlabel-1.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| oknlabel-1.1.2-py3-none-any.whl | Python 3 | none | any | Details for oknlabel-1.1.2-py3-none-any.whl |
Total release size: 22.9 kB
Release files / oknlabel-1.1.2.tar.gz
| Download URL | oknlabel-1.1.2.tar.gz |
|---|---|
| Size | 11.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
457aeb9ec15c37d3fe032ffbfd4e291898d5835bee7e120726787c06c0d0ad11
|
|
BLAKE2b-256 checksum How to use checksums |
a7aed815573421a6ff6c2eb9ab112d400762eb6311028974bc3f1c2c3fac28b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.7
|
Release files / oknlabel-1.1.2-py3-none-any.whl
| Download URL | oknlabel-1.1.2-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0890508416f275aa61c82efc2c58895c92603d2c9015a975b7566e293a2e9c1b
|
|
BLAKE2b-256 checksum How to use checksums |
e77fcbf1805e1506bc7a3651c2bfa65726f125c6fddd391e9832b20a4a455b5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.7
|
Security for oknlabel 1.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.