Skip to main content

Collection of Python utilities for signal analysis

Project description


*thLib* contains functions for working with sound, and for fitting circles,
lines, sine-waves, and exponential decays. For signal processing, a
Savitzky-Golay filter is included, as well as a demonstration of the
calculation of a power spectrum. UI utilities, and a few useful vector
functions (e.g. an implementation of the Savitzky-Golay algorithm) round off

**Note:** All functions for working with 3D kinematics have been moved into
the new package "scikit-kinematics"!

Compatible with Python 2 and 3.

numpy, scipy, matplotlib, pandas, statsmodels, skimage, sympy


Author: Thomas Haslwanter
Date: 09-02-2018
Ver: 0.12.2
Licence: BSD 2-Clause License (
Copyright (c) 2018, Thomas Haslwanter
All rights reserved.

You can install thlib with

pip install thLib

and upgrade to a new version with

pip install thLib -U



- fits.demo_ransac ... RANSAC fit of best circle in image
- fits.fit_circle ... basic circle fit
- fits.fit_exp ... exponential fit
- fits.fit_line ... linear regression fit, complete with confidence intervals for mean and values, and with plotting
- fits.fit_sin ... sine fit
- fits.fit_ellipse ... ellipse fit (Taubin's method)
- fits.regress ... multilinear regression fit, similar to MATLAB

Signal Processing Utilities

- signals.pSpect ... simple power spectrum from FFT
- signals.savgol ... Savitzky-Golay filter

GUI Utilities

- ui.getfile ... GUI for selecting an existing file
- ui.getdir ... GUI for selecting a directory
- ui.listbox ... GUI for item selection
- ui.progressbar ... Show a progressbar, for longer loops
- ui.savefile ... GUI for saving a file
- ui.get_screensize ... width and height of screen

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for thLib, version 0.12.2
Filename, size File type Python version Upload date Hashes
Filename, size thLib-0.12.2.tar.gz (1.4 MB) File type Source Python version None Upload date Hashes View hashes
Filename, size (646.6 kB) File type Windows Installer Python version any Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page