Skip to content

Integrate ShortfallEvents into PRAS report - #107

Open
akrivi wants to merge 40 commits into
NatLabRockies:mainfrom
akrivi:al/PRASReport
Open

Integrate ShortfallEvents into PRAS report#107
akrivi wants to merge 40 commits into
NatLabRockies:mainfrom
akrivi:al/PRASReport

Conversation

@akrivi

@akrivi akrivi commented May 4, 2026

Copy link
Copy Markdown
Collaborator

This PR builds on the DuckDB-based reporting logic first introduced in PR#92

It adds functionality to generate an interactive PRAS HTML report and an accompanying DuckDB database directly from PRAS simulation results. The report is structured into two main sections:

  1. Monte Carlo (MC) Results
    Includes system-level and regional metrics obtained across the MC samples.

  2. Event-Focused Results
    Focuses on the individual shortfall events and includes both system-level and regional event metrics, including event counts, durations, energy and LOLEv.

In addition, the report includes a set of the plots most commonly used for RA analysis at both the system and regional level. These include:

  • Temporal heatmaps of mean shortfall and NEUE by month and hour
  • Mean shortfall, interface flow and interface utilization timeseries
  • Event duration distributions
  • Event scatter plots (duration vs. energy)

The implementation leverages DuckDB for efficient storage and querying of simulation outputs and pre-aggregation of metrics and plot data, which keeps working with large-scale systems efficient.

An example report for RTS-GMLC can be found here: example_rts_report.html

sriharisundar and others added 30 commits September 11, 2025 08:04
…bse; Remove views in the db schema, can bring back in later if needed; Make many functions internal and don't export
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants