.. pyveu documentation master file, created by sphinx-quickstart on Tue Feb 5 18:21:02 2019. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. pyveu -- Value Error Unit ================================= .. image:: https://gitlab.sauerburger.com/frank/pyveu/badges/master/pipeline.svg :target: https://gitlab.sauerburger.com/frank/pyveu/-/pipelines .. image:: https://gitlab.sauerburger.com/frank/pyveu/badges/master/coverage.svg :target: https://gitlab.sauerburger.com/frank/pyveu .. image:: https://gitlab.sauerburger.com/frank/pyveu/-/jobs/artifacts/master/raw/license.svg?job=badges :target: https://gitlab.sauerburger.com/frank/pyveu/-/blob/master/LICENSE .. image:: https://gitlab.sauerburger.com/frank/pyveu/-/jobs/artifacts/master/raw/pypi.svg?job=badges :target: https://pypi.org/project/pyveu/ .. image:: https://readthedocs.org/projects/pyveu/badge/?version=latest&style=flat :target: https://pyveu.readthedocs.io/en/latest/ .. image:: https://mybinder.org/badge_logo.svg :target: https://mybinder.org/v2/git/https%3A%2F%2Fgitlab.sauerburger.com%2Ffrank%2Fpyveu-playground.git/master?filepath=pyveu-playground.ipynb .. toctree:: :maxdepth: 2 :hidden: :caption: First steps Home installation getting_started .. quantities .. si_units .. toctree:: :maxdepth: 2 :hidden: :caption: Advanced topics api_reference .. prefix_units .. error_propagation The python package pyveu (Value Error Unit) handles real-life experimental data which includes uncertainties and physical units. The package implements arithmetic operations and many mathematical functions for physical quantities. Gaussian error propagation is used to calculate the uncertainty of derived quantities. The package is built with the day-to-day requirements of people working a laboratory kept in mind. The package offers an imperative programming style, which means that the operations are evaluated when they are typed interactively in python, giving researchers the freedom and flexibility they need. Quickstart ========== Install the package using pip .. code-block:: console $ pip install pyveu The working horse of the package is the :class:`pyveu.Quantity` class. It can be used to convert units, for example, it can convert meter per second into kilometer per hour. >>> from pyveu import Quantity >>> speed = Quantity("32 +- 3 m / s") >>> speed.str("km / hr") '(115 +- 11) km / hr' Quantities from a measurement usually come with a measurement uncertainty. The class :class:`pyveu.Quantity` propagates the uncertainty automatically. >>> time = Quantity("3.23 +- 0.1 min") >>> distance = speed * time >>> distance.str("km") '(6.2 +- 0.6) km' Links ===== * `GitLab Repository `_ * `Documentation `_ * `pyveu on PyPi `_