Skip to main content

Sandia PSL Uncertainty Calculator

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

suncal-1.7.0.tar.gz (4.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

suncal-1.7.0-py3-none-any.whl (2.8 MB view details)

Uploaded Python 3

File details

Details for the file suncal-1.7.0.tar.gz.

File metadata

  • Download URL: suncal-1.7.0.tar.gz
  • Upload date:
  • Size: 4.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.7

File hashes

Hashes for suncal-1.7.0.tar.gz
Algorithm Hash digest
SHA256 e0ad413033ecd4eecbae9151bac43a4170d27e51b59ef056ba0b18ad5bb15eb2
MD5 0b75b2517405251dca6fc6ea90ad914f
BLAKE2b-256 c69721038516d6460b3db84fb80d27a4ef8fd0cfca8113c56628ecb6a002f536

See more details on using hashes here.

File details

Details for the file suncal-1.7.0-py3-none-any.whl.

File metadata

  • Download URL: suncal-1.7.0-py3-none-any.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.7

File hashes

Hashes for suncal-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a9f8267ed97e0a0106a0e7bab4c16669fab943d1bd048c41c78df2e5635c7ef
MD5 270482716aaccdfb5e6ce8b23937f51e
BLAKE2b-256 84b72649a2b1b8c462b4e76abd9adaf46b33764658130c4f380d7f8490e3dca8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page