Skip to main content

Library for efficient processing and visualization of time series.

Project description

QATS

Python library and GUI for efficient processing and visualization of time series.

Python versions Build Status PyPi Deployment Status Documentation Status

General

About

The python library provides tools for:

  • Import and export from/to various pre-defined time series file formats
  • Signal processing
  • Inferring statistical distributions
  • Cycle counting using the Rainflow algorithm

It was originally created to handle time series files exported from SIMO and RIFLEX. Now it also handles SIMA hdf5 (.h5) files, Matlab (version < 7.3) .mat files, CSV files and more.

QATS also features a GUI which offers efficient and low threshold processing and visualization of time series. It is perfect for inspecting, comparing and reporting:

  • time series
  • power spectral density distributions
  • peak and extreme distributions
  • cycle distributions

Demo

QATS GUI

Python version support

QATS supports Python 3.7, 3.8, 3.9 and 3.10.

Getting started

Installation

Run the below command in a Python environment to install the latest QATS release:

python -m pip install qats

To upgrade from a previous version, the command is:

python -m pip install --upgrade qats

You may now import qats in your own scripts:

from qats import TsDB, TimeSeries

... or use the GUI to inspect time series. Note that as of version 4.2.0 you are quite free to choose which Qt binding you would like to use for the GUI: PyQt5 or PySide2, or even PyQt4 / PySide.

Install the chosen binding (here PyQt5 as an example):

python -m pip install pyqt5

If multiple Qt bindinds are installed, the one to use may be controlled by setting the environmental variable QT_API to the desired package. Accepted values include pyqt5 (to use PyQt5) and pyside2 (PySide2). For more details, see README file for qtpy.

The GUI may now be launched by:

qats app

To create a start menu link, which you can even pin to the taskbar to ease access to the QATS GUI, run the following command:

qats config --link-app

Take a look at the resources listed below to learn more.

New in version 4.11.0. The command line interface is also accessible by running Python with the '-m' option. The following commands are equvivalent to those above:

python -m qats app
python -m qats config --link-app

Resources

Contribute

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Install Python version 3.7 or later from either https://www.python.org or https://www.anaconda.com.

Clone the source code repository

At the desired location, run:

git clone https://github.com/dnvgl/qats.git

Installing

To get the development environment running:

... create an isolated Python environment and activate it,

python -m venv /path/to/new/virtual/environment

/path/to/new/virtual/environment/Scripts/activate

... install the dev dependencies in requirements.txt,

python -m pip install -r requirements.txt

.. and install the package in development ("editable") mode.

python -m pip install -e .

Note: This is similar to the "legacy" development installation command python setup.py develop, see the setuptools page on development mode.

You should now be able to import the package in the Python console,

import qats
help(qats)

... and use the command line interface (CLI).

qats -h

New in version 4.11.0. The CLI is also available from

python -m qats -h

Running the tests

The automated tests are run using unittest.

python -m unittest discover 

Building the package

Build tarball and wheel distributions by:

python setup.py sdist bdist_wheel

The distribution file names adhere to the PEP 0427 convention {distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.whl.

Building the documentation

The html documentation is built using Sphinx

sphinx-build -b html docs\source docs\_build

To force a build to read/write all files (always read all files and don't use a saved environment), include the -a and -E options:

sphinx-build -a -E -b html docs\source docs\_build

Deployment

Packaging, unit testing and deployment to PyPi is automated using GitHub Actions.

Versioning

We apply the "major.minor.micro" versioning scheme defined in PEP 440. See also Scheme choices on https://packaging.python.org/.

We cut a new version by applying a Git tag like 3.0.1 at the desired commit and then setuptools_scm takes care of the rest. For the versions available, see the tags on this repository.

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

qats-4.11.0.tar.gz (51.7 MB view details)

Uploaded Source

Built Distribution

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

qats-4.11.0-py3-none-any.whl (125.8 kB view details)

Uploaded Python 3

File details

Details for the file qats-4.11.0.tar.gz.

File metadata

  • Download URL: qats-4.11.0.tar.gz
  • Upload date:
  • Size: 51.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for qats-4.11.0.tar.gz
Algorithm Hash digest
SHA256 0c454c1616412a9e9f2d10c90237ad49474e7ee7d3df642b4308e5a81c5ba6ca
MD5 726cab4afd0b20433f49fedeb5a01dbd
BLAKE2b-256 d582bf5830380c2c80315aeba64a07f32dfc5d7254d4f5ff7d91fbc3257f248b

See more details on using hashes here.

File details

Details for the file qats-4.11.0-py3-none-any.whl.

File metadata

  • Download URL: qats-4.11.0-py3-none-any.whl
  • Upload date:
  • Size: 125.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for qats-4.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d3dff4a5b80b827cf3327648159b7676df59fa556ff0f5f31aaa0e3620592f2
MD5 797b320c04114cced55889bfa34024de
BLAKE2b-256 05e4518c0aca37ec4cc48a4685dc26ab5d4649edaf070ca47b0dc303247ea021

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