Skip to main content

Second-order section filtering with multiple filters

Project description

sosfilt

Second-order section filtering with multiple filters.

This library just extracts scipy's sosfiltfilt (and related) method. Instead of taking a single SOS filter, with shape (n_sections, 6), it takes one filter for each core slice of the input array. That is, the SOS filter has shape (n_filters, n_sections, 6), and the input array has shape (..., n, ...), where the product of the shape of all the elided dimensions is n_filters. Notably, it will not do any broadcasting along the non-core dimensions.

The actual filtering algorithm employed within this library is exactly the same as that within scipy. In that sense, results should be identical. However, in order to vectorise the creation of the initial conditions with sosfilt_zi, a direct calculation is employed, rather than deferring to a linear solve. The result should be practically identical, but it is possible that they aren't reproducible to machine precision due to this adjustment.

Installation

Install directly from the git repository, install from pypi with pip install sosfilt, or install from conda with conda install -c angus-g sosfilt.

Example

import sosfilt
import numpy as np

x = np.random.randn(5, 20, 5)
# 25 random lowpass filters
f = sosfilt.butter(3, np.random.rand(25))

sosfilt.sosfiltfilt(f, x, axis=1)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sosfilt-1.4.1.tar.gz (157.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

sosfilt-1.4.1-cp314-cp314t-musllinux_1_2_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.14tmusllinux: musl 1.2+ x86-64

sosfilt-1.4.1-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (177.4 kB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

sosfilt-1.4.1-cp314-cp314-musllinux_1_2_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.14musllinux: musl 1.2+ x86-64

sosfilt-1.4.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (181.8 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

sosfilt-1.4.1-cp313-cp313-musllinux_1_2_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

sosfilt-1.4.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (181.6 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

sosfilt-1.4.1-cp312-cp312-musllinux_1_2_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

sosfilt-1.4.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (182.0 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

sosfilt-1.4.1-cp311-cp311-musllinux_1_2_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

sosfilt-1.4.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (183.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

sosfilt-1.4.1-cp310-cp310-musllinux_1_2_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

sosfilt-1.4.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (182.6 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

sosfilt-1.4.1-cp39-cp39-musllinux_1_2_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.9musllinux: musl 1.2+ x86-64

sosfilt-1.4.1-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (183.1 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

File details

Details for the file sosfilt-1.4.1.tar.gz.

File metadata

  • Download URL: sosfilt-1.4.1.tar.gz
  • Upload date:
  • Size: 157.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sosfilt-1.4.1.tar.gz
Algorithm Hash digest
SHA256 4c3fdee3a70697c074a0a0a1aec79994cf2232d035fe573b9c6a53063f1540ba
MD5 7c96375c6de521d9b21067a36e4af826
BLAKE2b-256 f2625dbb95e011cb22ef57cc7dbf18d02da892e002d0fd796648b5b0dc18e848

See more details on using hashes here.

Provenance

The following attestation bundles were made for sosfilt-1.4.1.tar.gz:

Publisher: package.yml on angus-g/sosfilt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sosfilt-1.4.1-cp314-cp314t-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for sosfilt-1.4.1-cp314-cp314t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 23e93031387f7fc8509f8c40ba51cd01d856f92d352d52a9075af332d64c9b59
MD5 a6268ac5a14746303f9e9df7c12166e5
BLAKE2b-256 ee123273ca59cad72574fa0c23a74715f87235b5a3fa96d4bae28f596a62da16

See more details on using hashes here.

Provenance

The following attestation bundles were made for sosfilt-1.4.1-cp314-cp314t-musllinux_1_2_x86_64.whl:

Publisher: package.yml on angus-g/sosfilt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sosfilt-1.4.1-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for sosfilt-1.4.1-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 07dc134f5d308b8ea5ae3768171a2a37b462267d9c44a5e64ce77b0e9e03777a
MD5 775dc452f5d0cdb10981b90d4b750a1e
BLAKE2b-256 558f21f8e9983a4af039de8be042b6c0b9590fbca5afd61f0f95e9665031b820

See more details on using hashes here.

Provenance

The following attestation bundles were made for sosfilt-1.4.1-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: package.yml on angus-g/sosfilt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sosfilt-1.4.1-cp314-cp314-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for sosfilt-1.4.1-cp314-cp314-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9b5cbd907b53de510337c5b0f4ae2dd7c6d26fb92075962a8f44b2c3e403feb5
MD5 11970089bfcbf3fcf0c02cd6ac77b30b
BLAKE2b-256 478ecd4b76041a44ae69cff3b79e04255230e852f55a714a370a45c580e047c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for sosfilt-1.4.1-cp314-cp314-musllinux_1_2_x86_64.whl:

Publisher: package.yml on angus-g/sosfilt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sosfilt-1.4.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for sosfilt-1.4.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 62541821230736d62164063a9a9695ec42ac66edf3c51fa94a9cd50d41cb7a53
MD5 a64602a8719f834ff20d36ea9c9b0ee9
BLAKE2b-256 6997bc597c94e3b43cd2a3da66729c9b124d07ed36fd03ad0ce486176662dede

See more details on using hashes here.

Provenance

The following attestation bundles were made for sosfilt-1.4.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: package.yml on angus-g/sosfilt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sosfilt-1.4.1-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for sosfilt-1.4.1-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a24f184f8540b325382029139aaf7dfa987737bfa4b9b316e0d16da7ffe0eeca
MD5 69c5786cf8c058afb2fa11e63a0c9ea9
BLAKE2b-256 f410bb61d27f7f72e5bef9b68c3baeeb6959deeb11b61a9466b3ffebae3fb03b

See more details on using hashes here.

Provenance

The following attestation bundles were made for sosfilt-1.4.1-cp313-cp313-musllinux_1_2_x86_64.whl:

Publisher: package.yml on angus-g/sosfilt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sosfilt-1.4.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for sosfilt-1.4.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7bdcd38ccffd49396d28c7a7046520a663e89853feefdd54592e482cceb91594
MD5 7d09b8e9fa3d05e926ccdeabca8e0a5a
BLAKE2b-256 5270f6258219c5eb017c1271a1ac5c4e34c859699cad58c1be15e39df0a3a82c

See more details on using hashes here.

Provenance

The following attestation bundles were made for sosfilt-1.4.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: package.yml on angus-g/sosfilt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sosfilt-1.4.1-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for sosfilt-1.4.1-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1d819cc3ffaf9f40e3ce6a94986f65cabd8a618d567e8d3f5183774eeb3f898c
MD5 83ce31ae67d58e9b45f8758309ac7cf3
BLAKE2b-256 1cec659c12706c3667bdc967f74a72cca47563c9322df64358fd5737b7e60a80

See more details on using hashes here.

Provenance

The following attestation bundles were made for sosfilt-1.4.1-cp312-cp312-musllinux_1_2_x86_64.whl:

Publisher: package.yml on angus-g/sosfilt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sosfilt-1.4.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for sosfilt-1.4.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2557cd7eaead281892e1ea977612b22145ddc034790a2ee8ebeccbe4ee5421a4
MD5 5544172dc898f287f697cbe8d834abc6
BLAKE2b-256 8c5a3101eb6b8bf0061d069296f8b63d67e31227d3c6ed3fb7773e783e77293f

See more details on using hashes here.

Provenance

The following attestation bundles were made for sosfilt-1.4.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: package.yml on angus-g/sosfilt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sosfilt-1.4.1-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for sosfilt-1.4.1-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 6cd1304c7d97efc6e97b93041df6c0f55159cd508ca5c10f24fb8801efe64786
MD5 35301e37685046f1bd991faa40406e63
BLAKE2b-256 abfdc708b44b3ed5641850e6ef0986c1d53798605d8b04b56c89ce9f24834a71

See more details on using hashes here.

Provenance

The following attestation bundles were made for sosfilt-1.4.1-cp311-cp311-musllinux_1_2_x86_64.whl:

Publisher: package.yml on angus-g/sosfilt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sosfilt-1.4.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for sosfilt-1.4.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2422aa09948d19278ade54b455fd9f70eba1c4e683ccf1b19efa76abd324dda4
MD5 e318d6f341f0e7f92b5c2a5bc32004eb
BLAKE2b-256 13931c8d57bb8eed8b3ef28a3358fe8902b7f67874bbf6f73b8b83b2caf17c08

See more details on using hashes here.

Provenance

The following attestation bundles were made for sosfilt-1.4.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: package.yml on angus-g/sosfilt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sosfilt-1.4.1-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for sosfilt-1.4.1-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 88c6fbd01a8bea7e60f38dde3a451f2d98ef8ef0764b4db95f364b6fcef267e9
MD5 4fd6851907d9376580e42c0da4075b29
BLAKE2b-256 8e32f915519f445d9c86705ee8440488274d94a90982386722633cbff3679f25

See more details on using hashes here.

Provenance

The following attestation bundles were made for sosfilt-1.4.1-cp310-cp310-musllinux_1_2_x86_64.whl:

Publisher: package.yml on angus-g/sosfilt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sosfilt-1.4.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for sosfilt-1.4.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fe2520222bd6e7eb270a2bab88987136565ed324b0c28e2af0c0caf3d636cbe2
MD5 19b347d97addcf2f14bd3613fa7da59b
BLAKE2b-256 78dbdafc2cd97e4112935df8a4dae53c83f7f0f0e3a8f4ff0ed29982cbd0f678

See more details on using hashes here.

Provenance

The following attestation bundles were made for sosfilt-1.4.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: package.yml on angus-g/sosfilt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sosfilt-1.4.1-cp39-cp39-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for sosfilt-1.4.1-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 76924c5fe5049ead4347c2807bb8f0cef93d732c49f0dbe056a2a4bfb79906a7
MD5 08c0f3f823cb5dac216c2de0b6715cc2
BLAKE2b-256 62e826a59275b057563b5116a401cb45fccc2399019ec1a7793182dde3964e2f

See more details on using hashes here.

Provenance

The following attestation bundles were made for sosfilt-1.4.1-cp39-cp39-musllinux_1_2_x86_64.whl:

Publisher: package.yml on angus-g/sosfilt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sosfilt-1.4.1-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for sosfilt-1.4.1-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3430df2303e5d855edc40c37eb35ad87930b96b1ba8d3d58e4dbe0956f3f6e0c
MD5 e867a7baa53deae77f5cb48beedb8cf7
BLAKE2b-256 7b6ba5551df66bf0c5f10bb2c8deb09225002370a47943c07220b0c4b8be38f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for sosfilt-1.4.1-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: package.yml on angus-g/sosfilt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page