Trouve
A package to search for events in time-series data that match a boolean condition. Various
transformation functions are built in to filter and alter events.
See Trouve’s documentation at https://trouve.readthedocs.io
Install
trouve is on the Python Package Index (PyPI):
pip install trouve
Dependencies
numpy
pandas
toolz
Example
This finds events in a short sample of 1Hz, time-series data and filters out events based
on their duration
>>> import numpy as np
>>> from trouve import find_events
>>> import trouve.transformations as tt
>>> x = np.array([1, 2, 2, 2, 0, 1, 2, 0, 2, 2])
>>> period = 1 # period = 1 / sample_rate
>>> duration_filter = tt.filter_durations(2, 3)
>>> events = find_events(x == 2, duration_filter, period=1)
>>> len(events)
2
>>> events.as_array()
array([ 0., 1., 1., 1., 0., 0., 0., 0., 1., 1.])
Metadata
Release files for trouve 0.6.0
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 |
|---|---|---|---|---|
| trouve-0.6.0.tar.gz | 11.5 kB | Without provenance | Details for trouve-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| trouve-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for trouve-0.6.0-py3-none-any.whl |
Total release size: 21.0 kB
Release files / trouve-0.6.0.tar.gz
| Download URL | trouve-0.6.0.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1678f4b501945ce47250dc26df577a236d55d8af5acf9fceb18236817409d535
|
|
BLAKE2b-256 checksum How to use checksums |
f620cc24192db4e958711b4f7e0eb2e846fd4e717418de4b31569955280a68b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / trouve-0.6.0-py3-none-any.whl
| Download URL | trouve-0.6.0-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7c292116afca19e70d5cebd9b41188a0719c5446a884f908a88f66c042f0c50c
|
|
BLAKE2b-256 checksum How to use checksums |
d1aa5f0815d6d1f5e641faee09a2fb63cf44f7535ca1e03b94caa712e13afd80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Security for trouve 0.6.0
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.