GTC
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
Python 2.7, 3.5+
Documentation
The documentation for GTC can be found here.
Metadata
Release files for GTC 1.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gtc-1.5.1.tar.gz | 116.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| GTC-1.5.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 245.4 kB
Release files / gtc-1.5.1.tar.gz
| Download URL | gtc-1.5.1.tar.gz |
|---|---|
| Size | 116.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f100344206ea2f4d620e70bbf37f5a35b93a6a656827f628e1f55ef0bf8eab6
|
|
BLAKE2b-256 checksum How to use checksums |
42199af5525432938af5b64560998ed73e3a33e11d0c178fb19fc76547d1def4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / GTC-1.5.1-py2.py3-none-any.whl
| Download URL | GTC-1.5.1-py2.py3-none-any.whl |
|---|---|
| Size | 128.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f332ff13f4b4925ad89cb7180dcabd0ce5bcce3a501af6e722049ae53b0dbb9f
|
|
BLAKE2b-256 checksum How to use checksums |
86b76170650b7ac14b08943f8fd688ce7c814eb941dece45dac9996620a8a08c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|