Skip to main content

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


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)

Uploaded Source

Built Distribution

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

gdromops-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

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

Hashes for gdromops-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e5b10d34cd227f81b8b08785fba5ca3cbae2afcf075edfbe0d683e05a24dd708
MD5 0a3c6b78ed6206ecb3961ecb0794caa1
BLAKE2b-256 59bf266b49d23b9b61a29e0a2003ea37b42fa77a3bb600d774938fe519d6c874

See more details on using hashes here.

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

Hashes for gdromops-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9812a7a009e460a94773e051b7d84672478f193fc86f766608350c6e72c64c4
MD5 5b5da61b5d040363d282bba40f3de281
BLAKE2b-256 d3c8a394db2d3755f57be7c42a4cfcac7f435060f86a24a997184bf1b54e7ce6

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