Skip to main content

Uncertainty Calculator

Sandia UNcertainty CALculator (SUNCAL)

Copyright 2019-2025 National Technology & Engineering Solutions of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government retains certain rights in this software. This software is distributed under the GNU General Public License.


This tool was developed by the Primary Standards Lab at Sandia National Laboratories to calculate the combined uncertainty of a multi-variable system. Contact uncertainty@sandia.gov.

Installation

Installation of the Python package and command line interface requires Python 3.9+ with the following packages:

  • numpy
  • scipy
  • sympy
  • matplotlib
  • pyqt5
  • pyyaml
  • markdown
  • pint

To install (on Windows, Mac, or Linux), from a command prompt, run:

pip install suncal

Example Usage

From a python terminal, script, or notebook:

import suncal
u = suncal.Model('A*B')
u.var('A').measure(100).typeb(unc=0.1)
u.var('B').measure(2).typeb(unc=0.01)
u.calculate()

See the PDF user's manual and the example notebook files in the docs folder for a complete reference guide.

Command-line script

A script named suncal will be installed to your system path. From a command line, run:

suncal file

where file is the filename of a setup file. See doc/examples folder for example setup files. Refer to the PDF user's manual for other commands.

User interface

A graphical user interface is installed with the Python package. Pre-built executables are available from https://sandiapsl.github.io.

To launch the user interface from a command line, run:

suncalui

or

python -m suncal.gui

Metadata

Release files for suncal 1.7.1

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

Source distribution (sdist)

Source distribution for suncal 1.7.1
File Size Uploaded Provenance
suncal-1.7.1.tar.gz 4.4 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for suncal 1.7.1
File Interpreter ABI Platform
suncal-1.7.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.2 MB

Release files / suncal-1.7.1.tar.gz

Download URL suncal-1.7.1.tar.gz
Size 4.4 MB
Tags Source
SHA-256 checksum
How to use checksums
33d1ca670d1178ad7f911168ed44aa86a067bf50c6a36cd1f8c4cfc167ba7b05
BLAKE2b-256 checksum
How to use checksums
f8e1edb883c527a9fefc23bb7a9cf3ed05d0f3fd9c4260224581cf957e0546d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / suncal-1.7.1-py3-none-any.whl

Download URL suncal-1.7.1-py3-none-any.whl
Size 2.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
5241b902b511affc2ed27799ff7acbc651ca02715709b341a707012d228b2fde
BLAKE2b-256 checksum
How to use checksums
82ae1787ee4e46afe24a5c71eddeab381160110336b4af70f8dedc7a20f737f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Security for suncal 1.7.1

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