Skip to main content

Your handy frequency and impulse response processing object

Project description

Response

(work in progress)

The response module defines the Response class as an abstraction of frequency and impulse responses.

from response import Response
fs = 16
x = [1]
# Create impulsive response and do chain of processing
r = Response.from_time(fs, x) \
            .zeropad(0, 15) \
            .delay(0.5) \
            .resample(10 * fs, window=('kaiser', 0.5)) \
            .timecrop(0, 0.6) \
            .time_window((0, 0.2), (0.5, 0.6))
# plot result
r.plot(show=True)
# time domain data
r.in_time
# frequency domain data
r.in_freq

Testing

Run tests in base directory with

pytest

Always run tests before pushing code.

Developing

Install for development with pip install -e . .

Comments should comply with the Numpy/Scipy documentation style. An example can also be found here. Code should comply to the pep8 coding style. You can check if the code complies by executing

pycodestyle
pydocstyle

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

response-0.1.0.tar.gz (13.0 kB view hashes)

Uploaded Source

Built Distribution

response-0.1.0-py2.py3-none-any.whl (12.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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