On-demand reservoir operation rules loader and simulator (GDROM)
Project description
gdromops
Load reservoir operation rules (CT + modules) from GitHub on demand and simulate releases/storage.
Install (editable dev)
pip install -e .
Quick start
from gdromops import RuleEngine
import pandas as pd
# Timeseries must include columns: Date, Inflow, Storage, DOY, PDSI
df = pd.read_csv("your_timeseries.csv", parse_dates=["Date"])
eng = RuleEngine(grand_id=41) # downloads rules from GitHub (cached locally)
out = eng.simulate_release_and_storage(df)
print(out.head())
Configuration
Default rules base (GitHub raw) is set in gdromops/config.py. Set env var GDROMOPS_CACHE
to change the cache directory.
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
gdromops-0.1.0.tar.gz
(4.2 kB
view details)
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 gdromops-0.1.0.tar.gz.
File metadata
- Download URL: gdromops-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5b10d34cd227f81b8b08785fba5ca3cbae2afcf075edfbe0d683e05a24dd708
|
|
| MD5 |
0a3c6b78ed6206ecb3961ecb0794caa1
|
|
| BLAKE2b-256 |
59bf266b49d23b9b61a29e0a2003ea37b42fa77a3bb600d774938fe519d6c874
|
File details
Details for the file gdromops-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gdromops-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9812a7a009e460a94773e051b7d84672478f193fc86f766608350c6e72c64c4
|
|
| MD5 |
5b5da61b5d040363d282bba40f3de281
|
|
| BLAKE2b-256 |
d3c8a394db2d3755f57be7c42a4cfcac7f435060f86a24a997184bf1b54e7ce6
|