{"id":44797,"library":"dtwalign","title":"dtwalign","description":"Comprehensive Dynamic Time Warping (DTW) package for Python. Supports partial matching and various constraint options (e.g., Sakoe-Chiba band, Itakura parallelogram). Current version 0.1.1 is a basic release; development appears infrequent.","status":"active","version":"0.1.1","language":"python","source_language":"en","source_url":"https://github.com/statefb/dtwalign","tags":["dynamic-time-warping","timeseries","sequence-alignment"],"install":[{"cmd":"pip install dtwalign","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"core array operations","package":"numpy","optional":false},{"reason":"distance matrix computation","package":"scipy","optional":false}],"imports":[{"note":"Most common mistake: importing the package itself, not the function","wrong":"import dtwalign","symbol":"dtw","correct":"from dtwalign import dtw"},{"note":"","wrong":"","symbol":"dtw_from_distance_matrix","correct":"from dtwalign import dtw_from_distance_matrix"}],"quickstart":{"code":"import numpy as np\nfrom dtwalign import dtw\nx = np.array([1, 2, 3, 4, 5])\ny = np.array([2, 3, 4, 5, 6])\nres = dtw(x, y)\nprint(res.distance)\nprint(res.path)","lang":"python","description":"Simple alignment of two sequences and print distance and warping path."},"warnings":[{"fix":"Flatten arrays before passing: x.ravel(), y.ravel().","message":"The dtw function expects 1D arrays by default; passing multi-dimensional may raise ValueError.","severity":"gotcha","affected_versions":"all"},{"fix":"Use Python 3.6+.","message":"Version 0.1.1 does not support Python 2; requires Python >=3.6.","severity":"breaking","affected_versions":">=0.1.1"},{"fix":"Do not pass step_pattern; only default symmetric2 is available.","message":"The 'step_pattern' parameter is not yet implemented; using it will raise NotImplementedError.","severity":"deprecated","affected_versions":"<=0.1.1"}],"env_vars":null,"search_vec":"'0.1.1':26 'align':41 'appear':32 'band':21 'basic':29 'chiba':20 'comprehens':2 'constraint':15 'current':24 'develop':31 'dtw':6 'dtwalign':1 'dynam':3,35 'dynamic-time-warp':34 'e.g':17 'infrequ':33 'itakura':22 'match':12 'option':16 'packag':7 'parallelogram':23 'partial':11 'python':9 'releas':30 'sako':19 'sakoe-chiba':18 'sequenc':40 'sequence-align':39 'support':10 'time':4,36 'timeseri':38 'various':14 'version':25 'warp':5,37","created_at":"2026-06-07T12:51:52.825765+00:00","updated_at":"2026-06-07T12:51:52.825765+00:00","problems":[{"fix":"Remove or impute NaN values before calling dtw.","cause":"NaN values in input sequences.","error":"ValueError: cannot convert float NaN to integer"},{"fix":"Ensure both inputs are 1D arrays or use ravel().","cause":"Calling dtw with incompatible array shapes (e.g., 2D with 1D).","error":"AttributeError: 'NoneType' object has no attribute 'distance'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/statefb/dtwalign","github":"https://github.com/statefb/dtwalign","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["analytics"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-29","install_tag":null}}