Registry / data / signal-processing-algorithms

signal-processing-algorithms

JSON →
library2.1.6pypypiunverified

A library for signal processing algorithms, originally developed at MongoDB, including peak detection using the 'peak_shapes' algorithm and related utilities. Current version 2.1.6 requires Python <3.12,>=3.11. Maintained by MongoDB.

pip install signal-processing-algorithms
INSTALL
IMPORT
SIG · SIGNAL-PROCESSING-
S
signal-processing-algorithms
datapythonv2.1.6
Install
12.0s avg
Import
Disk
270MB
Pass rate
8/ 10
Env Coverage8 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.1.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
glibc
py 3.10
✓ —
✓ 12s
py 3.11
✓ —
✓ 11.4s
py 3.12
✓ —
✓ 11.1s
py 3.13
✕ build_error
✕ build_error
py 3.9
✓ —
✓ 13.6s
270MB installed
● package 270MB
Code
Verified usage

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

peak_shapes
from signal_processing_algorithms import peak_shapes
from signal_processing_algorithms.peak_shapes import peak_shapes

Detect peaks in a sine wave using the peak_shapes algorithm.

from signal_processing_algorithms.peak_shapes import peak_shapes from signal_processing_algorithms.peak_shapes import Signal import numpy as np signal = Signal(np.sin(np.linspace(0, 10, 1000))) results = peak_shapes(signal, threshold=0.5) print(results)
Debug
Known issues
gotchaThe import path uses underscores: `signal_processing_algorithms` not `signal-processing-algorithms`. The hyphenated name is only for pip install.
fix
Use `from signal_processing_algorithms.peak_shapes import peak_shapes`
affects: all
deprecatedThe `peak_shapes` function has been renamed to `find_peaks` in version 2.0.0. The old name still works but may be removed in future.
fix
Use `from signal_processing_algorithms.peak_shapes import find_peaks`
affects: >=2.0.0
gotchaThe `Signal` class requires a numpy array. Passing a list will raise a TypeError.
fix
Convert list to numpy array: `signal = Signal(np.array([...]))`
affects: all
Upgrade
Version history
2.1.6latest on PyPI · released Dec 12, 2024
Audit
Dependencies
numpyrequiredCore dependency for array operations
scipyoptionalOptional dependency for signal processing
Agent activity
15 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources
signal-processing-algorithms — pip install signal-processing-algorithms · libregistry