Skip to main content

sigpropy - A Python package for signal processing

Joseph Vantassel, The University of Texas at Austin

DOI PyPI - License CircleCI Documentation Status Language grade: Python Codacy Badge codecov PyPI - Python Version Maintainability

Table of Contents

About sigpropy

sigpropy is a Python package for digital signal processing. It includes two main class definitions, TimeSeries and FourierTransform. These classes include methods to perform common signal processing techniques (e.g., trimming and resampling) and properties to make using them readable and intuitive.

This package and the classes therein are being used in several other Python projects, some of which have been released publicly and others are still in the development stage, so if you do not see a feature you would like it may very well be under development and released in the near future. To be notified of future releases, you can either watch the repository on GitHub or Subscribe to releases on the Python Package Index (PyPI).

TimeSeries

A simple example:

import sigpropy
import matplotlib.pyplot as plt
import numpy as np

dt = 0.002
time = np.arange(0, 1, dt)
s1 = 1*np.sin(2*np.pi*10*time)
s2 = 2*np.sin(2*np.pi*20*time)
s3 = 5*np.sin(2*np.pi*30*time)
amplitude = s1 + s2 + s3

tseries = sigpropy.TimeSeries(amplitude, dt)
fseries = sigpropy.FourierTransform.from_timeseries(tseries)

plt.plot(tseries.time, tseries.amplitude)
plt.xlabel("Time (s)")
plt.ylabel("Amplitude")
plt.show()

FourierTransform

A simple example:

import sigpropy
import matplotlib.pyplot as plt
import numpy as np

dt=0.002
time = np.arange(0, 1, dt)
s1 = 1*np.sin(2*np.pi*10*time)
s2 = 2*np.sin(2*np.pi*20*time)
s3 = 5*np.sin(2*np.pi*30*time)
amplitude = s1 + s2 + s3

tseries = sigpropy.TimeSeries(amplitude, dt)
fseries = sigpropy.FourierTransform.from_timeseries(tseries)

plt.plot(fseries.frequency, fseries.mag)
plt.xscale("log")
plt.xlabel("Frequency (Hz)")
plt.ylabel("|FFT Amplitude|")
plt.show()

Special Thanks To

  • Albert Kottke for his suggestions to speed up the Konno and Ohmachi smoothing. For a standalone implementation of Konno and Ohmachi smoothing see his project pykooh.

Metadata

Release files for sigpropy 1.0.0

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

Source distribution (sdist)

Source distribution for sigpropy 1.0.0
File Size Uploaded Provenance Actions
sigpropy-1.0.0.tar.gz 28.4 kB Without provenance Details for sigpropy-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 58.1 kB

Release files / sigpropy-1.0.0.tar.gz

Download URL sigpropy-1.0.0.tar.gz
Size 28.4 kB
Tags Source
SHA-256 checksum
How to use checksums
37680681e2f50ecc887dd735f6b2a52009989885cfc577ab6ae1bf37f152a3f1
BLAKE2b-256 checksum
How to use checksums
7206082e56262cb505185d97a605205c15d3474c90a86c0e67eb0ddb995f84c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.5.0.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.5

Release files / sigpropy-1.0.0-py3-none-any.whl

Download URL sigpropy-1.0.0-py3-none-any.whl
Size 29.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
271dfd3c4ada5f74cf01f604759fed0dd93a2f2a5dab201b679454b5364422f3
BLAKE2b-256 checksum
How to use checksums
38488590f4dabf09e4523dbfc7d862b509edc12366d4776aa6332e6cc7d71c41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.5.0.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.5

Security for sigpropy 1.0.0

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