Repository navigation
Compare the extracted costs with Berkeley Lab's PJM cost data - #13
Conversation
python -m src.extract --validate looked for hand-read costs in the Queued Up spreadsheet, which has none, so it never compared anything. It now sets each extracted cost per kW beside the one in Berkeley Lab's PJM cost data (January 2023), with the difference, the megawatts each side divided by, and the study Berkeley Lab read. The file is pinned by address and SHA-256 like the workbook, downloaded into data/raw/costs/ the first time, and never committed. The command calls no model. The file covers 13 of the 25 default projects and AF1-236, and for all 14 the downloaded report is the study Berkeley Lab read. Run on a scratch panel holding the cost read by hand from AF1-236's report, it printed $391.35 per kW beside Berkeley Lab's $418.46, both over 1,210 MW.
The --validate note said the extracted cost is in the dollars of the study's own year. PJM's reports don't say so; Berkeley Lab assumes it for PJM's studies. The note now says the cost is probably in the study's year's dollars, as Berkeley Lab assumes.
…th-berkeley-lab # Conflicts: # README.md # docs/future_work.md
An independent review found that no test covered the megawatts --validate shows when a study omits them or gives zero, and that future work tied --validate to AC2-093, which Berkeley Lab doesn't cover. The validation test now covers both fallbacks. New tests check that a file with another checksum is reported, and that --validate without a panel says to build one rather than ending in a traceback. The output says which way the difference runs and whose megawatts are whose. The docs now say --validate has nothing to compare until the paid extraction runs, and explain the gaps it will show. Most of AF1-236's is Berkeley Lab's conversion to 2022 dollars, and for four default projects whose reports give no network upgrades, the gap is all of Berkeley Lab's figure. The sources link to the page that offers the file.
|
Evidence for
|
Problem
python -m src.extract --validatelooked for hand-read costs in the Queued Up spreadsheet, which has none, so it never compared anything.What changes
--validatesets each extracted cost per kW beside the one in Berkeley Lab's PJM cost data (January 2023), which its researchers read by hand from PJM's studies of 1,127 projects. For each project in both, it prints the two costs, the difference (the extracted cost minus Berkeley Lab's), the megawatts each was divided by, and the study Berkeley Lab read. It calls no model.src/config.py, like the Queued Up workbook. It is downloaded intodata/raw/costs/the first time there is a cost to compare, by the same checked download code as the workbook. It states no open licence, so Git ignores it.docs/decisions.mdgives the alternatives, evidence and trade-offs, including why some gaps will be large. The future-work item this completes is gone.Verification
--validatedownloaded the file from the pinned address into an empty folder, matched its checksum, and printed $391.35 per kW beside Berkeley Lab's $418.46, a difference of −$27.11, both divided by 1,210 MW.50a36331…af245) gives the network costs quoted, and its codebook says only "using a gdp deflator".--validate(nothing to compare, nothing downloaded), the evaluation and a question.Not checked against OpenAI's live API
--validatecalls no model, but it compares extracted costs, and there are none until the paid extraction runs. So it hasn't yet compared a cost the model extracted: the run above used one I read by hand.Review
An earlier review, before this branch was rebuilt onto
main, didn't finish. A fresh independent review ofaf7b223and24d1d8afound no blockers, two things to fix (an untested megawatt fallback, and a future-work sentence tying--validateto AC2-093, which Berkeley Lab doesn't cover), six minor points and some nits.d576e48fixes all of them except one nit: a failed download still exits with status 0, as--validatedid onmain. These fixes had my review only.