Skip to main content

Sandia PSL Uncertainty Calculator

Project description

Uncertainty Calculator

Sandia UNcertainty CALculator (SUNCAL)

Copyright 2019-2023 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

A shortcut to this can be put on your desktop, etc.

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.6.2.tar.gz (24.9 MB view details)

Uploaded Source

Built Distribution

suncal-1.6.2-py3-none-any.whl (423.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: suncal-1.6.2.tar.gz
  • Upload date:
  • Size: 24.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for suncal-1.6.2.tar.gz
Algorithm Hash digest
SHA256 acce098bab3c6f8f4a5f59901b05e52a91c464fd526f22bb724b00d0aed04d91
MD5 65635da32f4a7c6d7372131559b6b6ff
BLAKE2b-256 199a31688432225c3238a3231325d403699978c7bab6d4831987e9715e47d229

See more details on using hashes here.

File details

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

File metadata

  • Download URL: suncal-1.6.2-py3-none-any.whl
  • Upload date:
  • Size: 423.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for suncal-1.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ad29b05e1abe323f3804a35aac9d12d18288c83fa05483ca8c81f5aead71c99b
MD5 073b5a7d42cd8af3bed149ce26801419
BLAKE2b-256 27fdbb21c089a321cfb2b16c7473312907d96b4c70099d6a96bb23b1588eda36

See more details on using hashes here.

Supported by

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