Skip to main content

SimpleSpectral

Heavily simplified scipy.signal.spectral module which only depends on NumPy and supports pyFFTW

Requirements

  • Python 3

  • NumPy

  • Optional: pyFFTW (for fastest FFT calculations with FFTW library)

  • Optional: SciPy (for faster FFT calculations with scipy.fftpack library)

SimpleSpectral preferably uses pyfftw for FFT calculations, then scipy.fftpack and numpy.fft as a last resort.

You should always install SciPy or pyFFTW, because numpy.fft has horrible memory usage and is also much slower.

Differences

You can use scipy.signal tutorial and reference guide in most cases, but there are some important differences:

  • input data is assumed to be complex and two-sided spectrum is always returned (return_onesided argument is not implemented)

  • length of FFT is always same as length of segment (nfft argument is not implemented)

  • functions work always over last axis of array (axis argument is not implemented)

  • if you want to have best FFT performance with pyFFTW, you should create arrays with empty, zeros or ones functions from SimpleSpectral instead of generic versions from NumPy (arrays will be byte aligned for your CPU)

Implemented functions:

  • empty

  • zeros

  • ones

  • fft

  • get_window

  • get_detrend

  • extend_boundaries

  • welch

  • periodogram

  • spectrogram

  • stft

Supported windows:

  • boxcar

  • hann

  • hamming

  • bartlett

  • blackman

  • kaiser

  • tukey

Supported boundary extensions:

  • even

  • odd

  • constant

  • zeros

Supported detrending functions:

  • constant

Credits

Based on code from excellent SciPy project.

Metadata

Release files for SimpleSpectral 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 SimpleSpectral 1.0.0
File Size Uploaded Provenance
SimpleSpectral-1.0.0.tar.gz 6.1 kB Without provenance Details

Release files / SimpleSpectral-1.0.0.tar.gz

Download URL SimpleSpectral-1.0.0.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
869326949870faed82bf21890603569e5c834a8599be5d55c38cb3b41bef0362
BLAKE2b-256 checksum
How to use checksums
8defcf739f7ba571e336189a4a704b844ae08eaf3641a4eb0d24b2c04db3eea5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for SimpleSpectral 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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file 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