Registry / data / peakutils

peakutils

JSON →
library1.3.5pypypi✓ verified 83d ago

Peak detection and analysis utilities for 1D data. Provides functions to find peaks, estimate parameters, and filter peaks. Current version 1.3.5; no recent releases, appears to be in maintenance mode.

pip install peakutils
INSTALL
IMPORT
SIG · PEAKUTILS
P
peakutils
datapythonv1.3.5
Install
7.2s avg
Import
1423ms
Disk
230MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.3.5 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 1.432s · 230.7MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 7.2s · import 1.414s · 222MB
230MB installed
● package 230MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

import peakutils
import peakutils
from peakutils import *
Avoid star import to keep namespace clean; use specific functions like peakutils.peak.indexes()

Basic peak detection in 1D data using threshold and minimum distance.

import numpy as np import peakutils # Generate sample data data = np.random.randn(100).cumsum() # Peak detection indices = peakutils.indexes(data, thres=0.5, min_dist=10) print('Peak indices:', indices)
Debug
Known issues
gotchaThe default interpolation method for peak coordinates is deprecated. Use centroid or parabolic methods explicitly.
fix
peakutils.peak.interpolate(x, y, ind=None, width=5, method='centroid')
affects: >=1.3
gotchaThe 'thres' parameter is a relative threshold, not absolute. It multiplies the range of the data (max - min).
fix
Set thres=0.5 to require peaks to be at least 50% of the data range above baseline.
affects: all
breakingRemoved 'peakutils.envelope' function in version 1.3 (previously available).
fix
Use scipy.signal.hilbert or custom code; no direct replacement in peakutils.
affects: >=1.3
Errors
Common errors & fixes
ImportError: No module named 'peakutils'
Package not installed or Python environment mismatch.
fix
Run 'pip install peakutils' and ensure you're using the correct Python interpreter.
AttributeError: module 'peakutils' has no attribute 'indexes'
Importing the wrong module or outdated version.
fix
Install/upgrade peakutils: 'pip install --upgrade peakutils'. Then use 'peakutils.indexes()'.
peakutils.peak.indexes() got an unexpected keyword argument 'thres'
Mistakenly using 'peakutils.peak.indexes' instead of 'peakutils.indexes'.
fix
Use 'peakutils.indexes(y, thres=0.5)' directly, not via peak submodule.
Upgrade
Version history
1.3.5latest on PyPI · released Jun 27, 2024
Audit
Dependencies
numpyrequiredCore dependency for array operations
scipyoptionalRequired for interpolation (peakutils.interpolate)
Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
peakutils — pip install peakutils · libregistry