Skip to main content

SignalFilters

A collection of digital signal filter front end for SciPy

A collection of signal processing tools, utilities and class for signal processing

Description

The signal processing tool box has the following topics

  1. filters: Definition of three digital signal filters (all with low, high, -band-pass mode)
    • Ideal block filter

    • Butterworth filter

    • Kaiser filter

    • Phase shift removal

  2. utils: Classes and function to support signal processing
    • SignalGenerator: class to generated signal with multiple harmonic components and noise for testing purposes

    • get_peaks: Extract the peaks from a power spectral density

Installation

SignalFilters can be installed via pip from PyPi

pip install SignalFilters

Examples

Using digital filters is easy. In two steps we do:

  1. Define a noisy sine wave

from  numpy import linspace, sin, random, pi
from signal_filters.filters import filter_signal


A_peak = 1.0            # Amplitude at 10 m
a_noise = 0.2 * A       # Noise rms at 0.2 m
T_peak = 10             # period of 10 seconds
f_peak = 1 / T_peak     # peak frequency at 0.1 Hz
total_time = 1000       # total sampling time of 1000 seconds
f_sample = 10           # sample frequency at 10 Hz
n_points = total_time * f_sample

time = linspace(0, total_time, num=n_points, endpoint=False)
y_original = sin(2 * pi * time / T_peak)
y_noise = random.normal(scale=a_noise, size=y_original.size)
y_total = y_original + y_noise
  1. Filter the noisy sine wave with a band pass filter with low and high cut-off frequency at 0.08 Hz and 0.12 Hz, respectively:

y_sine_filtered = filter_signal(y_total,
                                f_cut_low=0.08,
                                f_cut_high=.12,
                                f_sampling=f_sample)

More examples can be found at example_filtering and example_filtering_rtd.

Notes

  • The SciPy packages provides most signal processing tool, such as as a Power Spectral Density (PSF) estimator.

  • The filters defined in this package are a front end to the Scipy filters, making it easier to use digital filters in your code.

  • For peak finding either the PeakUtils or the PyWafo package is recommended.

  • The function get_peaks is a front end to the peakutils.peaks function

  • This project has been set up using PyScaffold 4.5.0. For details and usage information on PyScaffold see http://pyscaffold.readthedocs.org/.

Metadata

Release files for SignalFilters 0.0.8

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

Source distribution (sdist)

Source distribution for SignalFilters 0.0.8
File Size Uploaded Provenance Actions
signalfilters-0.0.8.tar.gz 15.8 MB Without provenance Details for signalfilters-0.0.8.tar.gz

Built distribution (wheel)

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

Total release size: 15.8 MB

Release files / signalfilters-0.0.8.tar.gz

Download URL signalfilters-0.0.8.tar.gz
Size 15.8 MB
Tags Source
SHA-256 checksum
How to use checksums
e670ac22224876ee9f12bbffc54eacf2b753445ac436b1d638feca097d9c87dd
BLAKE2b-256 checksum
How to use checksums
00d5f5aea3e5c12e8cf9396a25bdf74cb9eda3a5e1b921736588b98b81d71203
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release files / SignalFilters-0.0.8-py3-none-any.whl

Download URL SignalFilters-0.0.8-py3-none-any.whl
Size 18.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5985b86d6a545637fa0ee425ba1fb24fe2caceab5771c13c5aef2f9019a1842
BLAKE2b-256 checksum
How to use checksums
eae8678eb2375b815f20237a135c4ef38e328bd97d49a2a884e2fe3f3f57dc45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Security for SignalFilters 0.0.8

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.

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