Skip to main content

finds sequences [3, 4, 5] in NumPy arrays [1, 2, 3, 4, 5, 1, 2, 3, 4, 5] - result: [2 7]

Tested against Windows 10 / Python 3.10 / Anaconda

pip install stridessequencefinder

Find occurrences of a sequence in a 1-dimensional NumPy array using a rolling window approach.

Parameters:
sequence (numpy.ndarray): The sequence to search for.
array (numpy.ndarray): The input array to search within.
numexpr_enabled (bool, optional): Whether to use NumExpr for efficient computation (default is True).

Returns:
numpy.ndarray: An array of indices where the sequence is found in the input array.

Example:
>>> arr = np.array([1, 2, 3, 4, 5, 1, 2, 3, 4, 5])
>>> seq = np.array([3, 4, 5])
>>> indices = find_sequence_in_array(seq, arr)
>>> print(indices)
[2 7]

Metadata

Release files for stridessequencefinder 0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stridessequencefinder 0.10
File Size Uploaded Provenance Actions
stridessequencefinder-0.10.tar.gz 20.3 kB Without provenance Details for stridessequencefinder-0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for stridessequencefinder 0.10
File Interpreter ABI Platform Actions
stridessequencefinder-0.10-py3-none-any.whl Python 3 none any Details for stridessequencefinder-0.10-py3-none-any.whl

Total release size: 41.3 kB

Release files / stridessequencefinder-0.10.tar.gz

Download URL stridessequencefinder-0.10.tar.gz
Size 20.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5dfe04a982dd449b54b29cad45bb3282e7012c75e321b8b329e13959f6c67ff8
BLAKE2b-256 checksum
How to use checksums
9cd2834452ffb54ad22fea6a88a80d96abe7da396b1af8ace8421170d87cedce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / stridessequencefinder-0.10-py3-none-any.whl

Download URL stridessequencefinder-0.10-py3-none-any.whl
Size 21.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a665a1ab59d2ce60c9445d2c669db349403810f49af432d32c43d30517caaf3
BLAKE2b-256 checksum
How to use checksums
1d0d3ca26a24a77d7313a004f61df18c7945d99c387076df20505e6b0e7d759d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Security for stridessequencefinder 0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.10 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page