Cycle-based data analysis toolbox
Project description
cyclist
Event-based data analysis framework v 0.0.1
Cyclist allows you to split dataframes at predetermined "events". For instance, with an EMG channel measured during exercise you may capture the moment flexion and extension happens via motion capture. You can input the timing of your flexion and extension events into dictionaries and pass that into the create cycles function which will return the EMG cycles cut from first event 1 to stop event 1, and then first event 2 to stop event 2. Or, pass the same event twice, which will split the file into multiple parts from each event.
Class: eventDict, extends defaultdict
New eventDict:
x = cyclist.eventDict()
Explicit event creation:
eventDict.add_event(name,time)
Parse a dict of events:
events = cyclist.parse_events(external_event_dict)
external event dict must be a valid dictionary of form {'x':[1,2,3], 'two':[5.0,51,107]}
Split data based on cycles:
cyclist.create_cycles(data,eventDict,start,end)
Loops over the data and cuts from:
Start 1 -> End 1
Start 2 -> End 2
...
Start n -> End n
Returns a dataframe with len(data.columns) * n columns, with each column given a _n suffix
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
Built Distribution
File details
Details for the file cyclist-0.0.6.tar.gz
.
File metadata
- Download URL: cyclist-0.0.6.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf33c5f65ead23c39ddd1dd04b198fb50a4a6bbe1b068fb53fb9a9e46b2a4683 |
|
MD5 | 933b68b8d17aa28ffb86095aead6fbae |
|
BLAKE2b-256 | 9a2fc9b26869a7b5cb0030afaa822b473a15cebb3c17ef12b0bd188f039c4369 |
File details
Details for the file cyclist-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: cyclist-0.0.6-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b8390370d68af4433ad1b826108f3eaeacfb0e3db6543fc655e477436dab3e7 |
|
MD5 | b08c8409360ab918d7d9778f9d63a1e5 |
|
BLAKE2b-256 | 59a03242cc9a7ef8d5be2580861f7b059824b5757db48050a415c42eef72c921 |