Skip to main content

Your handy frequency and impulse response processing object

Project description

Response

travis-ci codecov

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)
# real impulse response
r.in_time
# complex frequency response
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

Git commit messages follow Angular style. Use python-semantic-release for versioning.

semantic-release version
# to tag and upload to github and pypi

And

python setup.py upload

for pushing to GitHub and PyPi.

Sadly, semantic-release publish wants pypi pw and username + github tokens set as env variables, rather than just using local settings.

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.1.tar.gz (13.4 kB view hashes)

Uploaded Source

Built Distribution

response-0.1.1-py2.py3-none-any.whl (12.5 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