{"id":24587,"library":"signal-processing-algorithms","title":"Signal Processing Algorithms","description":"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.","status":"active","version":"2.1.6","language":"python","source_language":"en","source_url":"https://github.com/mongodb/signal-processing-algorithms","tags":["signal-processing","peak-detection","mongodb"],"install":[{"cmd":"pip install signal-processing-algorithms","lang":"bash","label":"PyPI"}],"dependencies":[{"reason":"Core dependency for array operations","package":"numpy","optional":false},{"reason":"Optional dependency for signal processing","package":"scipy","optional":true}],"imports":[{"wrong":"from signal_processing_algorithms.peak_shapes import peak_shapes","symbol":"peak_shapes","correct":"from signal_processing_algorithms import peak_shapes"}],"quickstart":{"code":"from signal_processing_algorithms.peak_shapes import peak_shapes\nfrom signal_processing_algorithms.peak_shapes import Signal\nimport numpy as np\n\nsignal = Signal(np.sin(np.linspace(0, 10, 1000)))\nresults = peak_shapes(signal, threshold=0.5)\nprint(results)","lang":"python","description":"Detect peaks in a sine wave using the peak_shapes algorithm."},"warnings":[{"fix":"Use `from signal_processing_algorithms.peak_shapes import peak_shapes`","message":"The import path uses underscores: `signal_processing_algorithms` not `signal-processing-algorithms`. The hyphenated name is only for pip install.","severity":"gotcha","affected_versions":"all"},{"fix":"Use `from signal_processing_algorithms.peak_shapes import find_peaks`","message":"The `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.","severity":"deprecated","affected_versions":">=2.0.0"},{"fix":"Convert list to numpy array: `signal = Signal(np.array([...]))`","message":"The `Signal` class requires a numpy array. Passing a list will raise a TypeError.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'2.1.6':27 '3.11':31 '3.12':30 'algorithm':3,9,21 'current':25 'detect':16,40 'develop':11 'includ':14 'librari':5 'maintain':32 'mongodb':13,34,41 'origin':10 'peak':15,19,39 'peak-detect':38 'process':2,8,37 'python':29 'relat':23 'requir':28 'shape':20 'signal':1,7,36 'signal-process':35 'use':17 'util':24 'version':26","created_at":"2026-05-01T08:13:52.592971+00:00","updated_at":"2026-05-01T08:13:52.592971+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'peak_shapes' from 'signal_processing_algorithms' (/tmp/tmplmwng6ws/venv/lib/python3.12/site-packages/signal_processing_algorithms/__init__.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"2.1.6","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/mongodb/signal-processing-algorithms","docs":null,"changelog":null,"pypi":"https://pypi.org/project/signal-processing-algorithms/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["data","ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}