{"id":34114223,"url":"https://github.com/hansalemaos/stridessequencefinder","last_synced_at":"2026-04-08T12:33:03.406Z","repository":{"id":194094588,"uuid":"690240840","full_name":"hansalemaos/stridessequencefinder","owner":"hansalemaos","description":"finds sequences [3, 4, 5] in NumPy arrays [1, 2, 3, 4, 5, 1, 2, 3, 4, 5] - result: [2 7]","archived":false,"fork":false,"pushed_at":"2023-09-11T20:10:34.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-17T03:42:16.596Z","etag":null,"topics":["arrays","find","numexpr","numpy","sequence"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/stridessequencefinder/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hansalemaos.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-11T20:10:12.000Z","updated_at":"2023-09-11T20:11:10.000Z","dependencies_parsed_at":"2023-09-11T20:28:41.880Z","dependency_job_id":"22d3d60c-0a4e-4983-aee6-31647c81fe62","html_url":"https://github.com/hansalemaos/stridessequencefinder","commit_stats":null,"previous_names":["hansalemaos/stridessequencefinder"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hansalemaos/stridessequencefinder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fstridessequencefinder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fstridessequencefinder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fstridessequencefinder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fstridessequencefinder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hansalemaos","download_url":"https://codeload.github.com/hansalemaos/stridessequencefinder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fstridessequencefinder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31556232,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arrays","find","numexpr","numpy","sequence"],"created_at":"2025-12-14T19:28:11.898Z","updated_at":"2026-04-08T12:33:03.380Z","avatar_url":"https://github.com/hansalemaos.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# finds sequences [3, 4, 5] in NumPy arrays [1, 2, 3, 4, 5, 1, 2, 3, 4, 5] - result: [2 7]\r\n\r\n## Tested against Windows 10 / Python 3.10 / Anaconda\r\n\r\n## pip install stridessequencefinder\r\n\r\n\r\n\r\n```python\r\n\r\nFind occurrences of a sequence in a 1-dimensional NumPy array using a rolling window approach.\r\n\r\nParameters:\r\nsequence (numpy.ndarray): The sequence to search for.\r\narray (numpy.ndarray): The input array to search within.\r\nnumexpr_enabled (bool, optional): Whether to use NumExpr for efficient computation (default is True).\r\n\r\nReturns:\r\nnumpy.ndarray: An array of indices where the sequence is found in the input array.\r\n\r\nExample:\r\n\u003e\u003e\u003e arr = np.array([1, 2, 3, 4, 5, 1, 2, 3, 4, 5])\r\n\u003e\u003e\u003e seq = np.array([3, 4, 5])\r\n\u003e\u003e\u003e indices = find_sequence_in_array(seq, arr)\r\n\u003e\u003e\u003e print(indices)\r\n[2 7]\r\n\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansalemaos%2Fstridessequencefinder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhansalemaos%2Fstridessequencefinder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansalemaos%2Fstridessequencefinder/lists"}