DSP and Comm package.
Project description
scikit-dsp-comm
New RTL-SDR streaming added!
A feature story at the end of this readme. Readthedocs also contains a nice collection of Jupyter notebook examples, including RTL-SDR streaming, among the module documentation. The actual notebook files (.ipynb
) are in the docs folder at nb_examples. This folder is in the master branch once you have cloned the repo. Click the docs badge above to be taken to the documentation.
Background
The origin of this package comes from the writing the book Signals and Systems for Dummies, published by Wiley in 2013. The original module for this book is named ssd.py
. In scikit-dsp-comm
this module is renamed to sigsys.py
to better reflect the fact that signal processing and communications theory is founded in signals and systems, a traditional subject in electrical engineering curricula.
Package High Level Overview
This package is a collection of functions and classes to support signal processing and communications theory teaching and research. The foundation for this package is scipy.signal
. The code in particular currently requires Python >=3.5x
.
There are presently ten modules that make up scikit-dsp-comm:
-
sigsys.py
for basic signals and systems functions both continuous-time and discrete-time, including graphical display tools such as pole-zero plots, up-sampling and down-sampling. -
digitalcomm.py
for digital modulation theory components, including asynchronous resampling and variable time delay functions, both useful in advanced modem testing. -
synchronization.py
which contains phase-locked loop simulation functions and functions for carrier and phase synchronization of digital communications waveforms. -
fec_conv.py
for the generation rate one-half and one-third convolutional codes and soft decision Viterbi algorithm decoding, including soft and hard decisions, trellis and trellis-traceback display functions, and puncturing. -
fir_design_helper.py
which for easy design of lowpass, highpass, bandpass, and bandstop filters using the Kaiser window and equal-ripple designs, also includes a list plotting function for easily comparing magnitude, phase, and group delay frequency responses. -
iir_design_helper.py
which for easy design of lowpass, highpass, bandpass, and bandstop filters using scipy.signal Butterworth, Chebyshev I and II, and elliptical designs, including the use of the cascade of second-order sections (SOS) topology from scipy.signal, also includes a list plotting function for easily comparing of magnitude, phase, and group delay frequency responses. -
multirate.py
that encapsulate digital filters into objects for filtering, interpolation by an integer factor, and decimation by an integer factor. -
coeff2header.py
writeC/C++
header files for FIR and IIR filters implemented inC/C++
, using the cascade of second-order section representation for the IIR case. This last module find use in real-time signal processing on embedded systems, but can be used for simulation models inC/C++
.
Presently the collection of modules contains about 125 functions and classes. The authors/maintainers are working to get more detailed documentation in place.
Documentation
Documentation is now housed on readthedocs
which you can get to by clicking the docs badge near the top of this README
. Example notebooks can be viewed on GitHub pages. In time more notebook postings will be extracted from Dr. Wickert's Info Center.
Getting Set-up on Your System
The best way to use this package is to clone this repository and then install it.
git clone https://github.com/mwickert/scikit-dsp-comm.git
There are package dependencies for some modules that you may want to avoid. Specifically these are whenever hardware interfacing is involved. Specific hardware and software configuration details are discussed in wiki pages.
For Windows users pip
install takes care of almost everything. I assume below you have Python on your path, so for example with Anaconda, I suggest letting the installer set these paths up for you.
Editable Install with Dependencies
With the terminal in the root directory of the cloned repo perform an editable pip
install using
pip install -e .
Why an Editable Install?
The advantage of the editable pip
install is that it is very easy to keep scikit-dsp-comm
up to date. If you know that updates have been pushed to the master branch, you simply go to your local repo folder and
git pull origin master
This will update you local repo and automatically update the Python install without the need to run pip
again. Note: If you have any Python kernels running, such as a Jupyter Notebook, you will need to restart the kernel to insure any module changes get reloaded.
Project details
Release history Release notifications | RSS feed
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 scikit_dsp_comm-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c4a97c0a337357fc6eff06b47730f34d3cbc1ae362f5ef960d093e88f955c9b |
|
MD5 | 1324bea22f063e1819be9d6f44c1130e |
|
BLAKE2b-256 | a7ca088987ec58c6103f49742e953e66f9ae6098e17bef6f7e785406fa6ceacd |