Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions FINDINGS.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ as given is working on the wrong variable.
These bound every number below. They are stated once here rather than repeated.

1. **Region.** Tracks 1, 4 and 6 are PJM-specific in their headline numbers.
Track 1 reports all nine US balancing areas but the PPL and PJM cuts are
the ones emphasized. Nothing here establishes behavior in other RTOs.
Track 1 reports all nine US balancing areas but the PJM cut is the one
emphasized. Nothing here establishes behavior in other RTOs.
2. **Synthetic models where stated.** Track 2's feeders and track 3's load
shapes are parameterized archetypes, not measured circuits or metered
customers. Their *relative* comparisons hold; their absolute levels do not
Expand Down Expand Up @@ -99,8 +99,6 @@ and `realtime_backtest()`.

**Claim.** In PJM, **68.0%** of mature-cohort requests withdraw against
**23.8%** completing. No region in the dataset completes more than 29%.
PPL's own queue (**470 requests**, 49.5 GW) tracks the PJM pattern at
**67.7%** withdrawal and **15.5%** completion, so it is not an outlier.

**Scope.** Mature cohorts only: requests entering within 5 years of the record
end are excluded, because they have not had time to resolve and their inclusion
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ median, computed over completed projects, describes the minority that finished.
Read before a cohort resolves, that median is also truncated: re-reading three
fully resolved cohorts at earlier dates, it ran 1.55x to 2.06x low at the close
of the entry window. Withdrawal is the modal outcome in every region: PJM sees
68.0% withdraw against 23.8% completing, and PPL's own queue (470 requests,
49.5 GW) tracks that closely at 67.7% and 15.5%. An earlier version reported a
68.0% withdraw against 23.8% completing. An earlier version reported a
5.2x understatement from a survival fit that treated withdrawals as censoring;
it is retracted in FINDINGS.md.

Expand Down
4 changes: 0 additions & 4 deletions interconnection-analytics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,6 @@ offshore wind at 3.0%. Some of that is real project risk and some is that newer
technologies are concentrated in recent cohorts, which the maturity filter
mitigates but cannot fully remove.

**PPL specifically:** 470 requests, 49.5 GW, 15.5% completion, 67.7%
withdrawal. Close to the PJM-wide pattern, so PPL's queue is not an outlier in
either direction.

## Method notes

- **Cohort framing throughout.** Outcomes are never pooled across entry years.
Expand Down
9 changes: 2 additions & 7 deletions interconnection-analytics/run_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,20 +188,15 @@ def main() -> None:
resources.to_csv(paths.output(TRACK, "by_resource.csv"), index=False)
print(regions.round(3).to_string(index=False))

print("\n[pjm/ppl cut]")
print("\n[pjm cut]")
pjm = resolved[resolved.region == "PJM"]
ppl = resolved[resolved.utility == "PPL"]
cut = {
"pjm_projects": int(len(pjm)),
"pjm_completion_rate": float((pjm.outcome == "operational").mean()),
"pjm_withdrawal_rate": float((pjm.outcome == "withdrawn").mean()),
"pjm_total_mw": float(pjm.capacity_mw.sum()),
"ppl_projects": int(len(ppl)),
"ppl_completion_rate": float((ppl.outcome == "operational").mean()),
"ppl_withdrawal_rate": float((ppl.outcome == "withdrawn").mean()),
"ppl_total_mw": float(ppl.capacity_mw.sum()),
}
paths.output(TRACK, "pjm_ppl_summary.json").write_text(json.dumps(cut, indent=2))
paths.output(TRACK, "pjm_summary.json").write_text(json.dumps(cut, indent=2))
for k, v in cut.items():
print(f" {k:24s} {v:,.3f}" if isinstance(v, float) else f" {k:24s} {v:,}")

Expand Down
10 changes: 0 additions & 10 deletions outputs/interconnection-analytics/pjm_ppl_summary.json

This file was deleted.

6 changes: 6 additions & 0 deletions outputs/interconnection-analytics/pjm_summary.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pjm_projects": 8152,
"pjm_completion_rate": 0.14658979391560353,
"pjm_withdrawal_rate": 0.5992394504416094,
"pjm_total_mw": 876165.8212
}
4 changes: 2 additions & 2 deletions tests/test_claim_guard.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,11 @@ def test_catches_named_utility(private_sandbox: Path):
"""The failure mode this check exists for.

In a sibling repo, writing this check found a real problem: a track named
the author's employer five times as its worked example, inside a repo whose
one specific utility five times as its worked example, inside a repo whose
README disclaims employer affiliation.
"""
target = private_sandbox / "sometrack" / "analysis.py"
target.write_text('UTILITY = "PPL Electric" # worked example\n')
target.write_text('UTILITY = "Met-Ed" # worked example\n')
result = run_private_guard(private_sandbox)
assert result.returncode == 1
assert "names a specific utility" in result.stdout
Expand Down
6 changes: 3 additions & 3 deletions tests/test_interconnection_analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def test_capacity_decrease_requests_are_flagged(raw):
assert additions.sum() > 1_000_000 # over a TW of cumulative requests


def test_ppl_is_present(raw):
"""The utility this repo cares about most."""
assert (raw.utility == "PPL").sum() > 100
def test_pjm_is_well_populated(raw):
"""PJM is the region the headline numbers rest on."""
assert (raw.region == "PJM").sum() > 1000


def test_project_id_round_trips_through_parquet(raw, tmp_path):
Expand Down
15 changes: 0 additions & 15 deletions tools/check_claims.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,18 +144,6 @@ def t1_pjm_completion() -> float:
return float(100 * g.loc[g.region == "PJM", "completion_rate"].iloc[0])


def t1_ppl_projects() -> float:
return float(_json("interconnection-analytics", "pjm_ppl_summary")["ppl_projects"])


def t1_ppl_withdrawal() -> float:
return float(100 * _json("interconnection-analytics", "pjm_ppl_summary")["ppl_withdrawal_rate"])


def t1_ppl_completion() -> float:
return float(100 * _json("interconnection-analytics", "pjm_ppl_summary")["ppl_completion_rate"])


def t1_n_requests() -> float:
return float(len(_parquet("interconnection-analytics", "resolved")))

Expand Down Expand Up @@ -520,9 +508,6 @@ class Claim:
Claim(R_T1, "36,441", t1_n_requests, 36441, 0.0),
Claim(R_T1, "68.0%", t1_pjm_withdrawal, 67.97, 0.05),
Claim(R_T1, "23.8%", t1_pjm_completion, 23.79, 0.05),
Claim(R_T1, "470 requests", t1_ppl_projects, 470, 0.0),
Claim(R_T1, "67.7%", t1_ppl_withdrawal, 67.66, 0.05),
Claim(R_T1, "15.5%", t1_ppl_completion, 15.53, 0.05),
Claim(R_FIND, "34.1%", t1_max_completion_pre2020, 34.11, 0.05),
Claim(R_FIND, "38.4%", t1_max_completion_ceiling_pre2020, 38.37, 0.05),
Claim(R_FIND, "1.55x to 2.06x", t1_backtest_min, 1.550, 0.005),
Expand Down
18 changes: 5 additions & 13 deletions tools/check_no_private_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@

Three scans:

1. **Named utilities.** The author works in interconnection and tariff at a
Pennsylvania utility, and this repo analyzes interconnection screens and
PJM carbon signals. The adjacency has to be stated in the disclaimer and
1. **Named utilities.** The author works at a utility, and this repo
analyzes interconnection screens and PJM carbon signals. The adjacency has to be stated in the disclaimer and
absent from the analysis. A specific utility named as a worked example
reads as insider framing even when every input is public.

Two exceptions are legitimate and allowlisted: `interconnection-analytics`
reports a PPL cut of the public LBNL dataset, where "PPL" is a value in a
public data file, and the disclaimer itself.
The disclaimer itself is allowlisted. No track reports a single-utility
cut; zone names inside public data files under data/ are not scanned.

2. **Internal document markers.** Classification banners and the like.

Expand All @@ -39,6 +37,7 @@
UTILITY_NAMES = [
"PPL Electric",
"PPL Electric Utilities",
"PPL",
"Met-Ed",
"PECO",
"PENELEC",
Expand All @@ -51,14 +50,7 @@
"README.md": "disclaimer language only",
"NOTICE.md": "attribution",
"NOTICE": "attribution",
"FINDINGS.md": "PPL cut of the public LBNL dataset",
"interconnection-analytics/README.md": "PPL cut of the public LBNL dataset",
"interconnection-analytics/iqueue/ingest.py": "PPL is a value in the public LBNL utility column",
"interconnection-analytics/iqueue/analysis.py": "PPL is a value in the public LBNL utility column",
"interconnection-analytics/run_analysis.py": "PPL cut of the public LBNL dataset",
"tests/test_interconnection_analytics.py": "asserts the public dataset contains PPL rows",
"tools/check_no_private_data.py": "this file defines the patterns",
"tools/check_claims.py": "claim table references the PPL figures",
}

INTERNAL_MARKERS = [
Expand Down
Loading