Skip to main content

A Python package for quantifying uncertainty in ensembles of data streams.

Project description

Quantification of Uncertainty in ENsembles of Data Streams (QUENDS)

Evans Etrue Howard, Abeyah Calpatura, Pieterjan Robbe, Bert Debusschere

Coverage Status Deploy to GitHub Pages Run Tests pages-build-deployment

Overview

This project focuses on uncertainty quantification in plasma turbulent simulations. It includes modules for loading and processing NetCDF and CSV datasets, estimating steady states, computing effective sample sizes, and running uncertainty quantification analyses. The project is structured into multiple Python scripts, each handling different aspects of the analysis. To see more information on documentation, etc... visit our website here.

Table of Contents

Installation

  1. Install the package and dependencies: You can install the package along with its dependencies using pip:

    pip install quends
    
  2. Verify the installation: To ensure that the installation was successful, you can run a simple test:

    python -c "import quends; print('quends installed successfully')"
    

Usage

Examples are shown in the examples/notebooks directories.

  • cgyro: Contains all CGYRO data
  • gx: Contains all gx data
  • gx/ensemble: Contains all ensemble data
  • DataStream_Guide-CGRYO.ipynb: DataStream guide for CGYRO data
  • DataStream_Guide-GX.ipynb: DataStream guide for GX data
  • DataStream_Guide-Ensemble.ipynb: DataStream guide for Ensembles
  • DataStream_Guide.ipynb: DataStream guide

For Developers

  1. Clone the repository:

    • Using SSH:
    git clone git@github.com:sandialabs/quends.git
    cd quends
    
    • Using HTTPS:
    git clone https://github.com/sandialabs/quends.git
    cd quends
    
  2. Install the package and dependencies: You can install the package along with its dependencies using pip:

    pip install -e .\[dev\]
    
  3. Install pre-commit hooks To ensure code quality and consistency, install:

    pre-commit install
    
  4. Run Ruff: For linting and fixing issues:

    ruff check --fix
    
  5. Run isort: To format your code with Black:

    isort .
    
  6. Run Black: To format your code with Black:

    black .
    

Developers: Publishing quends to PyPI

This section is for maintainers who publish new releases of quends.

  1. Update the version Update the version in pyproject.oml before each release.

  2. Build the package

    python3 -m build
    
  3. Test on TestPyPI

    python3 -m twine upload --repository testpypi dist/*
    pip install -i https://test.pypi.org/simple/ quends
    
  4. Upload to PyPI

    python3 -m twine upload dist/*
    

Documentation

For comprehensive information on how to use the QUENDS package, please refer to our official documentation.

Summary

Key functionalities include:

  • Data Handling: Seamlessly load and preprocess data from various formats, including CSV, JSON, and NetCDF.
  • Statistical Analysis: Compute essential statistics and assess data quality with built-in methods for effective sample size estimation and confidence interval calculations.
  • Visualization: Create informative plots to visualize trends, correlations, and patterns in time series data.

Contributing

Feel free to submit issues and merge requests. For major changes, please open an issue first to discuss what you would like to change.

License

BSD 3-Clause License

Copyright 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.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

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

quends-0.1.2.tar.gz (117.3 kB view details)

Uploaded Source

Built Distribution

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

quends-0.1.2-py3-none-any.whl (94.9 kB view details)

Uploaded Python 3

File details

Details for the file quends-0.1.2.tar.gz.

File metadata

  • Download URL: quends-0.1.2.tar.gz
  • Upload date:
  • Size: 117.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for quends-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6a3d58d9a679bfbaef21e7e713c6388035cfb32eba023b7c28487471d1b28af3
MD5 8c31b94e98efba7e4b3adfe8acef6b89
BLAKE2b-256 e7d2bc6b0f81dfec158b07d9207dce0b90bde0a4515ebe1e8d803f5ed07e5337

See more details on using hashes here.

Provenance

The following attestation bundles were made for quends-0.1.2.tar.gz:

Publisher: publish-to-pypi.yml on sandialabs/quends

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file quends-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: quends-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 94.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for quends-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 35a4ecf68259d2f17263e37930e1a4d6ea50ed6524082af927ec38188088c88d
MD5 6a96c228e56ec441126c12d51e699caf
BLAKE2b-256 de807ea894a749a5185410422ce0ad268404c1d75e5c1942bf6a1dbe72c4e25d

See more details on using hashes here.

Provenance

The following attestation bundles were made for quends-0.1.2-py3-none-any.whl:

Publisher: publish-to-pypi.yml on sandialabs/quends

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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