detecta
Python module to detect events in data
The following functions are implemented in detecta:
- detect_peaks.py: detects peaks in data based on their amplitude and other features.
- detect_onset.py: detects onset in data based on amplitude threshold.
- detect_cusum.py: detects abrupt changes in data using cumulative sum algorithm (CUSUM).
- detect_seq.py: detects initial and final indices of sequential data identical to a parameter.
Installation
pip install detecta
The plots (parameter show=True) require matplotlib, which can be installed together with:
pip install "detecta[plot]"
Or
conda install -c duartexyz detecta
Examples
The examples are marimo notebooks in the docs directory. Run them in your browser, no installation needed:
| Notebook | molab | marimo.app |
|---|---|---|
| detect_peaks | ||
| detect_onset | ||
| detect_cusum | ||
| detect_seq |
The notebook name links to a static preview with the outputs; the badges run the notebook in your browser with WebAssembly.
Or run them locally:
uvx marimo edit --sandbox docs/detect_peaks.py
Other similar modules
How to cite this work
Here is a suggestion to cite this GitHub repository:
Marcos Duarte. (2021). detecta: A Python module to detect events in data (Version v0.0.5). Zenodo. http://doi.org/10.5281/zenodo.4598962
And a possible BibTeX entry:
@software{marcos_duarte_2021_4598962,
author = {Marcos Duarte},
title = {detecta: A Python module to detect events in data},
month = mar,
year = 2021,
publisher = {Zenodo},
version = {v0.0.5},
doi = {10.5281/zenodo.4598962},
url = {https://doi.org/10.5281/zenodo.4598962}
}
License
The non-software content of this project is licensed under a Creative Commons Attribution 4.0 International License, and the software code is licensed under the MIT license.
Metadata
Release files for detecta 0.1.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 | |
|---|---|---|---|---|
| detecta-0.1.0.tar.gz | 16.6 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| detecta-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.4 kB
Release files / detecta-0.1.0.tar.gz
| Download URL | detecta-0.1.0.tar.gz |
|---|---|
| Size | 16.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c562a6f4a2f396ffdb8141cf2b4800b551df8b55ee0584dce354510fd83013d
|
|
BLAKE2b-256 checksum How to use checksums |
8fcf26d3c9cc66f33c984362d0705f14428707075bdad3c620c24900c32316ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
Transparency logRelease files / detecta-0.1.0-py3-none-any.whl
| Download URL | detecta-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
65873e8eed31330385ac565ebebb6ab5956f7d9344be616df2f666fb8458e90a
|
|
BLAKE2b-256 checksum How to use checksums |
6ec1af80bc2be88de8333419dcda7868116f2458fc298fbcdeb452250f80ccb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
Transparency logSecurity for detecta 0.1.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for detecta-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
Transparency logA 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.