Skip to main content

Manipulate k7 files with one hand

Project description

k7

Version Licence Build

Cassette

CCBY: Cassette by Alvaro Cabrera from the Noun Project

Usage

Check file format

python -m k7.k7 --check myfile.k7

k7 format

{"location": "grenoble", "tx_length": 100, "start_date": "2018-01-11 16:32:22", "stop_date": "2018-01-13 16:21:30", "node_count": 44, "channels": [11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26], "interframe_duration": 100}
datetime,src,dst,channel,mean_rssi,pdr,tx_count
2018-01-11 16:33:07,18,19,11,-53.2,1.0
2018-01-11 16:33:07,17,14,11,-84.03,0.97
2018-01-11 16:33:07,23,27,11,-83.88,1.0
2018-01-11 16:33:30,16,14,11,-67.03,1.0
2018-01-11 16:33:30,22,49,11,-70.0,1.0
...

Header

Each k7 starts with a one-line header. The header is the json dump of a dict. The header contains the dataset meta data. Ex:

{"location": "grenoble", "tx_length": 100, "start_date": "2017-06-20 16:22:15", "stop_date": "2017-06-21 10:29:29", "node_count": 50, "channels": [11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26], "interframe_duration": 10}

Data

datetime src dst channel mean_rssi pdr tx_count
iso8601 string int int int float float (0-1) int

Standard example:

datetime src dst channel mean_rssi pdr tx_count
2017-12-19 21:35:41 0 1 11 -74.5 1.0 100

The source or destination can be empty (i.e when measured on all the neighbors of the src):

datetime src dst channel mean_rssi pdr tx_count
2017-12-19 21:35:41 11 -74.5 0.7 100

Unknown channel:

datetime src dst channel mean_rssi pdr tx_count
2017-12-19 21:35:41 1 2 -79.5 1.0 100

When the channel value is empty, it means that the channel is unknown for that measurement.

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

k7-0.4.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

k7-0.4.2-py2-none-any.whl (4.9 kB view details)

Uploaded Python 2

File details

Details for the file k7-0.4.2.tar.gz.

File metadata

  • Download URL: k7-0.4.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.19.9 CPython/2.7.15rc1

File hashes

Hashes for k7-0.4.2.tar.gz
Algorithm Hash digest
SHA256 a4cbba266c177370d5c88b51ef59b22c3a84f9c245ce2beaadd2b19e5af2474f
MD5 2ceb1631aad3e5b9af9cc94b4884a9bd
BLAKE2b-256 b4252b2411d1f161b0106095b78c4298e2cdf6347d9fd5a71054316ace2bfc89

See more details on using hashes here.

File details

Details for the file k7-0.4.2-py2-none-any.whl.

File metadata

  • Download URL: k7-0.4.2-py2-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.19.9 CPython/2.7.15rc1

File hashes

Hashes for k7-0.4.2-py2-none-any.whl
Algorithm Hash digest
SHA256 4d8e52e29fa2b495b0df907d0d974a523ada3dc5166b2e1a588199a2e63ffe82
MD5 09382288183ba7d0b88b93bcfba3ce8d
BLAKE2b-256 2e046f4e92849a445759335de8e0708f69ca7bf25ad620646975f8484db8764a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page