Package: qats
QATSPython library and GUI for efficient processing and visualization of time series.GeneralAboutThe python library provides tools for:Import and export from/to various pre-defined time series file formatsSignal processingInferring statistical distributionsCycle counting using the Rainflow algorithmIt was originally created to handle time series files exported fromSIMOandRIFLEX. Now it also
handlesSIMAhdf5 (.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 seriespower spectral density distributionspeak and extreme distributionscycle distributionsDemoGetting startedInstallationRun the below command in a Python environment to install the latest QATS release:python -m pip install qatsTo upgrade from a previous version, the command is:python -m pip install --upgrade qatsYou may now import qats in your own scripts:>>>fromqatsimportTsDB,TimeSeries... or use the GUI to inspect time series.New in version 5.0.0.TheQtbindingPySide6is installed withqats.
If you would rather like to usePyQt6, runpython -m pip install pyqt6If multiple Qt bindinds are installed, the one to use may be controlled by setting the environmental variableQT_APIto the desired package. Accepted values includepyqt6(to use PyQt6) andpyside6(PySide6). For more details, seeREADME file for qtpy.The GUI may now be launched by:qats appTo 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-appTake 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 apppython -m qats config --link-appResourcesSourceIssuesChangelogDocumentationDownloadContributeThese 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.PrerequisitesInstall Python version 3.8 or later from eitherhttps://www.python.orgorhttps://www.anaconda.com.Install Poetry withthe official installer.Install thepoetry-dynamic-versioningplugin:poetry self add "poetry-dynamic-versioning[plugin]"Clone the source code repositoryAt the desired location, run:git clone https://github.com/dnvgl/qats.gitInstallingTo get the development environment running...poetry installThis willcreate an isolated environmentinstall all dependencies including those required for development, testing and building documentationand install the package in development ("editable") modeYou should now be able to import the package in the Python console,>>>importqats>>>help(qats)... and use the command line interface (CLI).qats -hNew in version 4.11.0.The CLI is also available frompython -m qats -hRunning the testsThe automated tests are run usingunittest.python -m unittest discoverBuilding the packageBuild tarball and wheel distributions bypoetry buildThe builds appear in the.distfolder. The distributions adhere to thePEP 0427convention{distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.whl.Building the documentationThe html documentation is built usingSphinxsphinx-build -b html docs\source docs\_buildTo force a build to read/write all files (always read all files and don't use a saved environment), include the-aand-Eoptions:sphinx-build -a -E -b html docs\source docs\_buildVersioningWe apply the "major.minor.micro" versioning scheme defined inPEP 440. See alsoScheme choicesonhttps://packaging.python.org/.Versions are tagged with Git tags likev3.0.1. See thetags on this repository.Release and deploymentWe use therelease cycle in GitHubto cut new releases.Once a new release is published,GitHub Actionstakes care of the packaging, unit testing and deployment toPyPi.The workflows for continuous integration and deployment are found in.github/workflows.AuthorsPer Voie-tovopErling Lone-eneeloLicenseThis project is licensed under the MIT License - see theLICENSEfile for details.