Skip to main content

GTC

Documentation Status github tests pypi zenodo

The GUM Tree Calculator is a Python package for processing data with measurement uncertainty.

Python objects, called uncertain numbers, are used to encapsulate information about measured quantities. Calculations of derived quantities that involve uncertain numbers will propagate this information automatically. So, data processing results are always accompanied by uncertainties.

GTC follows international guidelines on the evaluation of measurement data and measurement uncertainty (the so-called GUM). It has been developed for use in the context of metrology, test and calibration work.

Example: an electrical circuit

Suppose the DC electrical current flowing in a circuit and the voltage across a circuit element have both been measured.

The values obtained were 0.1 V, for the voltage, and 15 mA for the current. These values have the associated standard uncertainties 0.001 V and 0.5 mA, respectively.

Uncertain numbers for voltage and current can be defined using the function ureal()

>>> V = ureal(0.1,1E-3)
>>> I = ureal(15E-3,0.5E-3)

The resistance of the circuit element can then be calculated directly using Ohm’s law

>>> R = V/I
>>> print(R)
6.67(23)

The uncertain number R represents the resistance of the circuit element. The value 6.67 ohm is an estimate (or approximation) of the actual resistance. The standard uncertainty associated with this value, is 0.23 ohm.

Installation

GTC is available as a PyPI package. It can be installed using pip

pip install gtc

Dependencies

Documentation

The documentation for GTC can be found here.

Metadata

Release files for GTC 1.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for GTC 1.5.2
File Size Uploaded Provenance Actions
gtc-1.5.2.tar.gz 119.0 kB Without provenance Details for gtc-1.5.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for GTC 1.5.2
File Interpreter ABI Platform Actions
gtc-1.5.2-py2.py3-none-any.whl Python 2, Python 3 none any Details for gtc-1.5.2-py2.py3-none-any.whl

Total release size: 247.9 kB

Release files / gtc-1.5.2.tar.gz

Download URL gtc-1.5.2.tar.gz
Size 119.0 kB
Tags Source
SHA-256 checksum
How to use checksums
57a7c8368c2b7c1ebf76da0110e24d81e641e91dea0f072a019eb1793fe7fa71
BLAKE2b-256 checksum
How to use checksums
3d01b5d552ca28c85b73f9522e10118b3303870a776b527965b0176df25e613e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / gtc-1.5.2-py2.py3-none-any.whl

Download URL gtc-1.5.2-py2.py3-none-any.whl
Size 129.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
18393a5702e920ac669d4ccf7bacb1357f9c16ce5cd39f221bb4bed72d024c32
BLAKE2b-256 checksum
How to use checksums
e13e7d18c0e296b564305e7ae6acadc81f3c059112eb584a83f621f3d02e1067
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for GTC 1.5.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page