Skip to main content

Sandia PSL Uncertainty Calculator

Project description

Uncertainty Calculator

Sandia UNcertainty CALculator (SUNCAL)

Copyright 2019-2022 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.7+ 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.UncertaintyCalc('A*B')
u.set_input('A', nom=100, unc=0.1)
u.set_input('B', nom=2, 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.5.7.tar.gz (14.7 MB view details)

Uploaded Source

Built Distribution

suncal-1.5.7-py3-none-any.whl (498.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: suncal-1.5.7.tar.gz
  • Upload date:
  • Size: 14.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.12.0 pkginfo/1.8.2 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.9.12

File hashes

Hashes for suncal-1.5.7.tar.gz
Algorithm Hash digest
SHA256 9d224fdc3d5f5aadd773b9a6185f7e4447f7a6310b17344c8a87a266bb276834
MD5 999a49b032cf33214f1e48d897b049d9
BLAKE2b-256 db77441d8eb52d06f06fb519b28adf66e281e56a8ffd10301b0f4cb05d116709

See more details on using hashes here.

File details

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

File metadata

  • Download URL: suncal-1.5.7-py3-none-any.whl
  • Upload date:
  • Size: 498.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.12.0 pkginfo/1.8.2 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.9.12

File hashes

Hashes for suncal-1.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 4c2279fa674a858e77e8797b42fb2e3cc5be2ed05c2ffba74a8afba80d0fd661
MD5 dc1925164152634c9a30805c18feb898
BLAKE2b-256 84de3fa477a712dd309852372480b2200f63f9f32a6054f59e440b9d5e5be1c4

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