{"id":24224,"library":"peakutils","title":"PeakUtils","description":"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.","status":"maintenance","version":"1.3.5","language":"python","source_language":"en","source_url":"https://github.com/lucashnegri/peakutils","tags":["peak detection","1D data","signal processing","utilities"],"install":[{"cmd":"pip install peakutils","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"Core dependency for array operations","package":"numpy","optional":false},{"reason":"Required for interpolation (peakutils.interpolate)","package":"scipy","optional":true}],"imports":[{"note":"Avoid star import to keep namespace clean; use specific functions like peakutils.peak.indexes()","wrong":"from peakutils import *","symbol":"import peakutils","correct":"import peakutils"}],"quickstart":{"code":"import numpy as np\nimport peakutils\n\n# Generate sample data\ndata = np.random.randn(100).cumsum()\n# Peak detection\nindices = peakutils.indexes(data, thres=0.5, min_dist=10)\nprint('Peak indices:', indices)","lang":"python","description":"Basic peak detection in 1D data using threshold and minimum distance."},"warnings":[{"fix":"peakutils.peak.interpolate(x, y, ind=None, width=5, method='centroid')","message":"The default interpolation method for peak coordinates is deprecated. Use centroid or parabolic methods explicitly.","severity":"gotcha","affected_versions":">=1.3"},{"fix":"Set thres=0.5 to require peaks to be at least 50% of the data range above baseline.","message":"The 'thres' parameter is a relative threshold, not absolute. It multiplies the range of the data (max - min).","severity":"gotcha","affected_versions":"all"},{"fix":"Use scipy.signal.hilbert or custom code; no direct replacement in peakutils.","message":"Removed 'peakutils.envelope' function in version 1.3 (previously available).","severity":"breaking","affected_versions":">=1.3"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install peakutils' and ensure you're using the correct Python interpreter.","cause":"Package not installed or Python environment mismatch.","error":"ImportError: No module named 'peakutils'"},{"fix":"Install/upgrade peakutils: 'pip install --upgrade peakutils'. Then use 'peakutils.indexes()'.","cause":"Importing the wrong module or outdated version.","error":"AttributeError: module 'peakutils' has no attribute 'indexes'"},{"fix":"Use 'peakutils.indexes(y, thres=0.5)' directly, not via peak submodule.","cause":"Mistakenly using 'peakutils.peak.indexes' instead of 'peakutils.indexes'.","error":"peakutils.peak.indexes() got an unexpected keyword argument 'thres'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}