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. 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 .
    
  3. Verify the installation: To ensure that the installation was successful, you can run a simple test:

    python -c "import quends"
    

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 .
    

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.1.tar.gz (114.8 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.1-py3-none-any.whl (94.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quends-0.1.1.tar.gz
  • Upload date:
  • Size: 114.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for quends-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f1a2fa09161c756455cc89544aa3bdb28b3f3db8dc5ed0d39cdfd71687db5476
MD5 7e0eb4d7a5c61517148c687e23ef5a43
BLAKE2b-256 6c052e41d28badc269e351463f82dae5a03f9c9398470fb1a50c3adfe0b4645f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quends-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 94.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for quends-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2182edc0ed56ac324b4f550b01d9e2d1ea954dcac90084c66da672f7d1a70aca
MD5 52a4134e7a0d5fd63c90fbf190a8664a
BLAKE2b-256 560cf173ab9e8d65e6bfffe32f62450fe80f3d4a2e2f0f2d1a585e01428b4739

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