ReEDS model plugin
Project description
[!WARNING] This project is currently optimized for internal R2X workflows. You are welcome to use it, but APIs and behavior may continue to evolve as
r2x-coreevolves.
r2x-reeds integrates NREL ReEDS model data
with r2x-core and infrasys. It provides a parser plugin for building
infrasys.System objects from ReEDS data, plus a set of reusable post-parse
transforms for common system-modification workflows.
Quickstart · Installation · What It Provides · Usage with r2x-core · Development · License
Quickstart
Install:
pip install r2x-reeds
Parse a ReEDS run directory into an infrasys.System:
from pathlib import Path
from r2x_core import DataStore, PluginContext
from r2x_reeds import ReEDSConfig, ReEDSParser
run_path = Path("path/to/reeds_run")
config = ReEDSConfig(
solve_year=2030,
weather_year=2012,
case_name="test_Pacific",
)
ctx = PluginContext(
config=config,
store=DataStore.from_plugin_config(config, path=run_path),
)
system = ReEDSParser.from_context(ctx).run().system
print(system.name)
Installation
From PyPI
Python requirement: >=3.11, <3.14.
pip install r2x-reeds
Using uv:
uv add r2x-reeds
From Source
git clone https://github.com/NREL/r2x-reeds.git
cd r2x-reeds
uv sync --all-groups
What It Provides
ReEDSParser: reads ReEDS outputs and inputs (CSV/HDF5-backed mappings) intoinfrasys.Systemcomponents and time series.ReEDSUpgraderandrun_reeds_upgrades(...): input version-detection and upgrade pipeline run during parser lifecycle.- Plugin entry point for
r2x-coreunder ther2x_plugingroup:reeds-parser = r2x_reeds:ReEDSParser
- Transform entry points under
r2x.transforms:add-pcm-defaultsadd-emission-capadd-electrolyzer-loadadd-ccs-creditbreak-gensadd-importsadd-optimal-siting
Usage with r2x-core
r2x-reeds follows the r2x-core plugin lifecycle.
- Build parser instances with
PluginContext. - Run lifecycle hooks with
.run(). - Configure parsing through
ReEDSConfig. - Apply optional
r2x.transformsafter parsing for scenario/system modifiers.
Development
Install dev dependencies:
uv sync --all-groups
Run the same checks used in CI:
uv run prek run --all-files --hook-stage pre-push
Targeted commands:
uv run pytest -q -m "not slow" --maxfail=1 --disable-warnings
uv run ty check ./src/r2x_reeds/
License
BSD 3-Clause. See LICENSE.txt.
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 r2x_reeds-0.5.0.tar.gz.
File metadata
- Download URL: r2x_reeds-0.5.0.tar.gz
- Upload date:
- Size: 62.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae3a73cfff9969222397d864f65b73c9ed85f0a8c1581b65186753170d63c9ab
|
|
| MD5 |
dc3ebf74f7509a94498cdda1e25b864b
|
|
| BLAKE2b-256 |
81ee49761fe8a7718f5926ae88c032b6a3ed811326a6c570661f364eaec0e64d
|
Provenance
The following attestation bundles were made for r2x_reeds-0.5.0.tar.gz:
Publisher:
release.yaml on NatLabRockies/r2x-reeds
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
r2x_reeds-0.5.0.tar.gz -
Subject digest:
ae3a73cfff9969222397d864f65b73c9ed85f0a8c1581b65186753170d63c9ab - Sigstore transparency entry: 1245955651
- Sigstore integration time:
-
Permalink:
NatLabRockies/r2x-reeds@0a2593070a2674d21bd552a6519a6235eab880c1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/NatLabRockies
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@0a2593070a2674d21bd552a6519a6235eab880c1 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file r2x_reeds-0.5.0-py3-none-any.whl.
File metadata
- Download URL: r2x_reeds-0.5.0-py3-none-any.whl
- Upload date:
- Size: 76.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd762a898f0e7879c620d9bba0d778857fd7bba5a5df4fff66cc44e907c1dc73
|
|
| MD5 |
d0b69f7eff6d6e49e4ae1c32593ef5dc
|
|
| BLAKE2b-256 |
60a1dbdaf1658786a7b1f24c91133261eed542443e36e9ea0589a7370cdcc238
|
Provenance
The following attestation bundles were made for r2x_reeds-0.5.0-py3-none-any.whl:
Publisher:
release.yaml on NatLabRockies/r2x-reeds
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
r2x_reeds-0.5.0-py3-none-any.whl -
Subject digest:
bd762a898f0e7879c620d9bba0d778857fd7bba5a5df4fff66cc44e907c1dc73 - Sigstore transparency entry: 1245955654
- Sigstore integration time:
-
Permalink:
NatLabRockies/r2x-reeds@0a2593070a2674d21bd552a6519a6235eab880c1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/NatLabRockies
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@0a2593070a2674d21bd552a6519a6235eab880c1 -
Trigger Event:
workflow_dispatch
-
Statement type: