Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
66d6717
Add skeleton files for mixed-upgrade HP adoption trajectory pipeline
sherryzuo Mar 22, 2026
ddf458d
Add git commit conventions and gh pr create pattern to AGENTS.md
sherryzuo Mar 22, 2026
ea1e49a
Implement materialize_mixed_upgrade: per-year ResStock data for HP ad…
sherryzuo Mar 22, 2026
82b23c0
Implement generate_adoption_scenario_yamls: per-year adoption scenari…
sherryzuo Mar 22, 2026
b0380f6
Add fit_adoption_config.py to generate NYCA adoption trajectory from …
sherryzuo Mar 22, 2026
d4f0d06
Fix run-adoption-all: move shebang to first line (mixed regular+sheba…
sherryzuo Mar 22, 2026
93fd6b6
Wire adoption trajectory recipes into shared Justfile
sherryzuo Mar 22, 2026
1053499
Add tests for materialize_mixed_upgrade
sherryzuo Mar 23, 2026
0eba2e7
Add residual_cost_frac support to run_scenario.py
sherryzuo Mar 23, 2026
0c1747a
get rid of approximation for upgrades 4,5
sherryzuo Mar 23, 2026
d8afe21
add comment
sherryzuo Mar 23, 2026
a732a17
Restrict HP adoption assignment to physically applicable buildings
sherryzuo Mar 23, 2026
41994b7
Add tests for generate_adoption_scenario_yamls
sherryzuo Mar 23, 2026
95b6108
Apply prek auto-formatting fixes
sherryzuo Mar 23, 2026
5b8d4bd
Add utils/buildstock and list_adoption_years utility
sherryzuo Mar 23, 2026
1561669
Refactor materialize_mixed_upgrade to use utils.buildstock
sherryzuo Mar 23, 2026
be5c73d
Fix parquet loading and Cambium dist MC handling
sherryzuo Mar 23, 2026
ede147d
Extend adoption scenario YAML generation
sherryzuo Mar 23, 2026
4d090d4
Update Justfile for adoption pipeline; add NYSEG adoption scenarios
sherryzuo Mar 23, 2026
8eb3065
Add script to compute distribution headroom exhaustion year by utility
sherryzuo Mar 25, 2026
900c60c
Plot building electrification load growth by utility from Gold Book I…
sherryzuo Mar 25, 2026
66e4ca1
Express electrification load growth as % of 2023-24 coincident winter…
sherryzuo Mar 25, 2026
f8627cd
Add stacked area plot of all I-1d winter demand components by utility
sherryzuo Mar 25, 2026
21dbab8
Fix stacked area sign bug: show demand reductions below zero
sherryzuo Mar 25, 2026
fc23227
Support lower demand scenario alongside baseline
sherryzuo Mar 25, 2026
35004f5
Forward-fill large loads past 2035-36 per Gold Book note
sherryzuo Mar 25, 2026
4f74bf1
Annotate panels where headroom is not exhausted within forecast period
sherryzuo Mar 25, 2026
49c5970
Add NCP growth line to demand components plot
sherryzuo Mar 25, 2026
bff3d3c
Add dashed CP growth line alongside solid NCP growth line
sherryzuo Mar 25, 2026
26e5314
Fix CP growth line to use scenario-specific I-3b rather than always b…
sherryzuo Mar 25, 2026
95e12b6
big commit
sherryzuo Apr 6, 2026
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
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,14 @@
"**/config/rev_requirement/**",
"dev_plots",
"infra"
],
"cursorpyright.analysis.exclude": [
"run_logs",
"**/config/tariffs/**",
"**/config/scenarios/**",
"**/config/tariff_maps/**",
"**/config/rev_requirement/**",
"dev_plots",
"infra"
]
}
6 changes: 6 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ Match existing style: Ruff for formatting/lint, **ty** for type checking, dprint

**LaTeX in markdown:** GitHub's MathJax renderer does not support escaped underscores inside `\text{}` (e.g. `\text{avg\_mc\_peak}` will fail). Use proper math symbols instead: `\overline{MC}_{\text{peak}}`, `MC_h`, `L_h`, etc. Bare subscripts and `\text{}` with simple words (no underscores) are fine.

## Git commits

- **Never write commit messages via a temp file** (e.g. `/tmp/commit_msg.txt`). Pass the message directly with `-m "..."` or let the user commit manually.
- **Never add co-author trailers** (`Co-authored-by: ...`) or any other generated-by attribution to commit messages or PR bodies.
- **For `gh pr create` body**: use `--body-file -` with a shell heredoc (stdin) to avoid attribution injection — do NOT use `--body "..."` with multi-line strings or `--body-file /tmp/...`. Example: `gh pr create --body-file - <<'PRBODY'\n...\nPRBODY`

## Code Quality (required before every commit)

- Run `just check` — no linter errors, no type errors, no warnings
Expand Down
2 changes: 1 addition & 1 deletion data/cambium/fetch_cambium_csvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def fetch_file_list(year="2024"):
return response.json()["files"], project_uuid
else:
console.print(f"[red]✗ Error fetching file list: {response.status_code}[/red]")
return None, None
return None


def get_s3_url(file_id, project_uuid):
Expand Down
Binary file not shown.
Binary file not shown.
Loading