Grid Analysis Toolkit - A module for PCM/CEM data analysis.
Project description
GAT - Grid Analysis Toolkit
A toolkit for wrangling data for Bulk Grid Dispatch and Transmission Analysis.
GAT aims to provide simplified access to PCM and CEM results in a standard format while also allowing raw data access to underlying datasets specific to the model.
For plotting, GAT defaults to standard National Lab of the Rockies (NLR) color schemes and standard styles while allowing customization.
Installation
It is recommended to create a virtual environment for installing GAT.
In your desired directory, run one of the following.
python -m venv .venv
python3 -m venv .venv
Then activate your virtual environment by running.
. .venv/bin/activate on MacOS or Linux
or .venv/Scripts/Activate on Windows. If you are having trouble activating the virtual environment on Windows, you may need to update your execution policy. More can be read here.
Install the latest release from PyPI:
pip install nlr-gat
Note: the distribution is named
nlr-gatbecausegaton PyPI is an unrelated genomics package. The import package and CLI are stillgat, which also meansnlr-gatcannot share an environment with that genomics package.
Or install from GitHub — the latest, a specific release, or a branch:
pip install git+https://github.com/NatLabRockies/GridAnalysisToolkit
pip install git+https://github.com/NatLabRockies/GridAnalysisToolkit@v0.1.0
pip install git+https://github.com/NatLabRockies/GridAnalysisToolkit@{branch_name}
Documentation
The latest stable documentation lives at natlabrockies.github.io/GridAnalysisToolkit. The example gallery is a good starting point for visual capability.
Highest-traffic doc pages (also readable directly in the repo):
- Quickstart: scenarios and palettes
- Python API:
gat.load(...) - Sienna scaling and raw dataset access
- Custom plots and the reporting framework
- v1 architecture & migration pattern
- Legacy scenario handler deprecation
- Migrating from v0.x to v1.0
- Changelog
Example data
example_data/ is gitignored — the binaries are too large to track
in-tree. Sienna fixtures regenerate via make sienna-fixture-v4
(requires Docker; see docker/sienna/README.md). For Plexos, point
the GAT_PLEXOS_FIXTURE environment variable at a directory of
.h5 solution files of your own. For the plexos2duckdb-backed
backend (pip install nlr-gat[plexos-duckdb]), point
GAT_PLEXOS_ZIP_FIXTURE at a native PLEXOS Solution.zip instead.
Contributing
If you wish to contribute to the development of GAT, please clone the repo and install the dev dependencies as follows.
git clone https://github.com/NatLabRockies/GridAnalysisToolkit.git
cd GridAnalysisToolkit
Follow the instructions for creating a virtual environment above, then:
pip install -e ".[dev]"
When you are ready, please open a pull request for review.
If you plan to contribute to documentation, install the documentation dependencies as well.
pip install -e ".[dev,doc]"
Building the documentation
After installing the doc dependencies:
cd docs && sphinx-build -b html source build/html
Review documentation changes locally:
open build/html/index.html
Software Record and Disclaimer
GAT is developed by the National Lab of the Rockies (NLR) and released under software record SWR-25-41 "GAT (Grid Analysis Toolkit)".
See DISCLAIMER.md for the full disclaimer.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nlr_gat-0.1.0.tar.gz.
File metadata
- Download URL: nlr_gat-0.1.0.tar.gz
- Upload date:
- Size: 694.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
313e646e5fb7db3a4b5a2108ca986ba8b96b9597cb1da8f6cf566414bfef6d7b
|
|
| MD5 |
1cc0d71fd37dbe96d83182e9447edf73
|
|
| BLAKE2b-256 |
939258f5f86fa964fc3bb8ff4eb54a732e5643a488ba23fcfba6cec39ef6a76b
|
Provenance
The following attestation bundles were made for nlr_gat-0.1.0.tar.gz:
Publisher:
release.yml on NatLabRockies/GridAnalysisToolkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nlr_gat-0.1.0.tar.gz -
Subject digest:
313e646e5fb7db3a4b5a2108ca986ba8b96b9597cb1da8f6cf566414bfef6d7b - Sigstore transparency entry: 2314113486
- Sigstore integration time:
-
Permalink:
NatLabRockies/GridAnalysisToolkit@3c62084bbae9610f88ee295d53a4330a95f4a75e -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/NatLabRockies
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3c62084bbae9610f88ee295d53a4330a95f4a75e -
Trigger Event:
push
-
Statement type:
File details
Details for the file nlr_gat-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nlr_gat-0.1.0-py3-none-any.whl
- Upload date:
- Size: 278.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe3aa0c6ff35a82e276cb5f7ee5a99c23c659599568b9a45081ea15c49862249
|
|
| MD5 |
4c0d12d89a563b7710565afcd31d8eb7
|
|
| BLAKE2b-256 |
a8794e794c7c2ce87779446640656eb5308a1bf779bde3b4bc9d2450095439f3
|
Provenance
The following attestation bundles were made for nlr_gat-0.1.0-py3-none-any.whl:
Publisher:
release.yml on NatLabRockies/GridAnalysisToolkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nlr_gat-0.1.0-py3-none-any.whl -
Subject digest:
fe3aa0c6ff35a82e276cb5f7ee5a99c23c659599568b9a45081ea15c49862249 - Sigstore transparency entry: 2314113504
- Sigstore integration time:
-
Permalink:
NatLabRockies/GridAnalysisToolkit@3c62084bbae9610f88ee295d53a4330a95f4a75e -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/NatLabRockies
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3c62084bbae9610f88ee295d53a4330a95f4a75e -
Trigger Event:
push
-
Statement type: