Your handy frequency and impulse response processing object
Project description
Response
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
Built Distribution
Hashes for response-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d11eb9a268ac8196aa4308d9af17d3e6d4f15a8084551455a665a6ebbe03868 |
|
MD5 | 2ea53177c944f571b4289045ec98802a |
|
BLAKE2b-256 | 44ae371f39e8b97c1cd69bbbb4cc08cc74f4ced16d4d3e8d533a67fac5b16e0c |