Skip to main content

Package for signal analysis

Project description

Chirper

Introduction

Chirper is a Python package used for Digital Signal Processing. It implements different tools to create, import and export signals, as well as integral transforms and different modulation methods, useful when using signals to carry information. It also contains an application to visualize and manipulate signals in real time.

How to install

In order to install Chirper, simply import it from PyPi by running

pip install chirper-py

or clone this repository from GitHub and install it by running

git clone https://github.com/No-tengo-nombre/chirper
cd chirper
pip install .

How to use

As a package

If you want to use Chirper as a package to manipulate signals, import the corresponding subpackages according to your purpose. As a rule of thumb, you will want to import chirper.sgn as it contains the base classes for all signals.

As an application

To use Chirper as an application, you have to run the module with the instruction

py -m chirper

Once you run it, a window will open that contains all the necessary configurations for you to work with signals. The basics of using the programs are:

  • Select the appropiate source for what you want to do.
  • Select the type of visualization you want to do.
  • Configure all the necessary parameters according to your application. For this, introduce the appropiate value and press Enter to confirm the change.
  • Once all configurations are done, start the process by turning On the source. This will start the visualization.
  • When you are done, simply turn it Off. If you want to modify some parameter, you have to turn it Off in order for the modification to take effect.

The application also contains a console that allows the user to receive information about how the program is doing. There are five levels that the user can choose from:

  • DEBUG: This shows a lot of (generally) useless information, and its intended purpose is to debug the code when something is going wrong. You generally don't want to use this level.
  • INFO: This shows information associated to the main processes of the software, such as notifying the user when a request is sent or received. These type of notifications are more important than the ones in the DEBUG level, but they still usually lack importance.
  • WARNING: This is the default level, and it contains notifications that might be important to the user (such as notifying them of an error). However, the notifications shown in this level are not critical, and are tipically derived from an user error (such as trying to set the sample rate to a string).
  • ERROR: This level notifies the user of errors that stop the operation of the software, but are still recoverable.
  • CRITICAL: Notifications shown in this level tipically mean the software encountered a large error that completely stops it from functioning, and so it must shut down.

Within the console is an input box that allows the user to send manual instructions to the software (currently not functional).

Contained subpackages

Currently, the implemented subpackages are:

  • modulation - Contains methods used for signal modulation. Right now, it allows for AM, FM and PM.
  • sgn - Contains the code that allows the user to create signals in different ways, as well as importing and exporting them from files. As of now, both one dimensional signals (such as audio signals) and two dimensional signals (such as images) are implemented, and there are plans to implement three dimensional signals (such as videos).
  • transforms - Contains different integral transforms which can be applied to signals. The ones currently implemented and the signals they can be applied to are:
    • fourier: Fourier transform (1D, 2D).
    • ifourier: Inverse Fourier transform (1D, 2D).
    • hilbert: Hilbert transform (1D).
    • cosine: Cosine transform (1D, 2D).
    • sine: Sine transform (1D, 2D).
    • stft: Short-time Fourier transform (1D).
  • api - This is an API that allows an user to send requests and receive data back from Chirper in a well formatted way. This is mainly used for the GUI that allows live signal visualization and manipulation.
  • gui - This subpackage contains the code for the GUI that allows the user to visualize and manipulate signals in real time.

Changing default methods

Within the chirper folder, there is a file config.py. It contains the default configurations used for the code, such as the default method used to calculate a Fourier transform, or the default method for convoluting two signals.

I want to eventually redesign this system, as it probably is very limiting. However, right now it gets the job done, so it isn't in the top of my priorities.

Relevant links

License

This code is distributed under the GNU General Public License v3.0. For more information, read the license.

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

chirper-py-1.1.2.tar.gz (45.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chirper_py-1.1.2-py3-none-any.whl (54.8 kB view details)

Uploaded Python 3

File details

Details for the file chirper-py-1.1.2.tar.gz.

File metadata

  • Download URL: chirper-py-1.1.2.tar.gz
  • Upload date:
  • Size: 45.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for chirper-py-1.1.2.tar.gz
Algorithm Hash digest
SHA256 66df9e47aa2d4ea384f7728eb466ef5a291cc7950c6032e41f7d5db3f6d989b6
MD5 a96d928d9a3ce8c5cf762b2e5084743c
BLAKE2b-256 b87a6d98637c048ed3fbbdfb9456bf612f5b3f5d10659a316ad57986feee7266

See more details on using hashes here.

File details

Details for the file chirper_py-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: chirper_py-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 54.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for chirper_py-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 507cc8393b67b5effe08a5ee19fc8ec743b43b1665ad500aefdc7fb4a39d6059
MD5 d7669e04a5a56f2eddeed1671ba1ec8e
BLAKE2b-256 4f59a1f250abeaf9bcba0dae5f1b86bee6848a2be4807f678afd276b1e8d7f83

See more details on using hashes here.

Supported by

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