|
| 1 | +# Copyright Spack Project Developers. See COPYRIGHT file for details. |
| 2 | +# |
| 3 | +# SPDX-License-Identifier: (Apache-2.0 OR MIT) |
| 4 | + |
| 5 | +from spack_repo.builtin.build_systems.python import PythonPackage |
| 6 | + |
| 7 | +from spack.package import * |
| 8 | + |
| 9 | + |
| 10 | +class PyPytuq(PythonPackage): |
| 11 | + """The Python Toolkit for Uncertainty Quantification (PyTUQ) is a |
| 12 | + Python-only collection of libraries and tools designed for quantifying |
| 13 | + uncertainty in computational models. PyTUQ offers a range of UQ |
| 14 | + functionalities, including Bayesian inference and linear regression |
| 15 | + methods, polynomial chaos expansions, and global sensitivity analysis |
| 16 | + methods. PyTUQ features advanced techniques for dimensionality |
| 17 | + reduction, such as SVD and Karhunen-Loeve expansions, along with |
| 18 | + various MCMC methods for calibration and inference. The toolkit also |
| 19 | + includes robust classes for multivariate random variables and |
| 20 | + integration techniques, making it a versatile resource for researchers |
| 21 | + and practitioners seeking to quantify uncertainty in their numerical |
| 22 | + predictions.""" |
| 23 | + |
| 24 | + homepage = "https://sandialabs.github.io/pytuq/" |
| 25 | + pypi = "pytuq/pytuq-1.0.0.tar.gz" |
| 26 | + |
| 27 | + maintainers("bjdebus", "ksargsyan", "gregvw") |
| 28 | + |
| 29 | + license("BSD-3-Clause", checked_by="gregvw") |
| 30 | + |
| 31 | + version("1.0.0", sha256="1fc9fabf7bf183d38e104564e99d1950f7e2103baac5a13960c356173b9997ff") |
| 32 | + |
| 33 | + depends_on( "[email protected]:", type=( "build", "run")) |
| 34 | + depends_on("py-setuptools", type="build") |
| 35 | + depends_on("py-wheel", type="build") |
| 36 | + |
| 37 | + depends_on("py-numpy", type=("build", "run")) |
| 38 | + depends_on("py-scipy", type=("build", "run")) |
| 39 | + depends_on("py-matplotlib", type=("build", "run")) |
| 40 | + |
| 41 | + variant("nn", default=False, description="Enable neural network support") |
| 42 | + |
| 43 | + depends_on("py-torch", type=("build", "run"), when="+nn") |
| 44 | + depends_on("py-uqinn", type=("build", "run"), when="+nn") |
0 commit comments