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 the 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.4.tar.gz (53.0 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.4-py3-none-any.whl (73.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chirper-py-1.1.4.tar.gz
  • Upload date:
  • Size: 53.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.10.0 keyring/23.4.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for chirper-py-1.1.4.tar.gz
Algorithm Hash digest
SHA256 78dbb787636bd588a37ddf7eadd3aec338dc1eedd4fd76be0e442f4d8dbf1afa
MD5 fbf39ce0301741c715bf19d5a4517a56
BLAKE2b-256 654fcd332b0a6023eea66be3478cc99c14771c5b554a8d6be98dae08920dc2f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chirper_py-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 73.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.10.0 keyring/23.4.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for chirper_py-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2a5100166fdc95feb68cfdb8790a28dbcb5ce53eeac5e8c68474a0890e1c5cdc
MD5 bc0f23b7d2bacd2c5f90132c86d6976a
BLAKE2b-256 470397bc6a35334301dcc608f3c92489e240e5945f0d5e15a8e935a77c95dafc

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