Repository navigation
feat: grid carbon-intensity keys in the site config (hpc-campaign p4) - #209
Merged
Merged
Conversation
An optional carbon_intensity table (gCO2e/kWh per named basis, value or low/central/high, unverified allowed) with ci_basis naming the basis used centrally; Site.carbon_intensity and Site.ci(basis). A site without the table gives no carbon figure, never a world-average default. site/ral.yaml: South England regional (central 188, half-hourly p5/p95 81-308), national 2025 (129, 51-231) and DESNZ 2025 (177), all unverified, ci_basis regional (ruling F6). Refs #208 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ign p4) validate() accepted carbon_intensity with an empty entry for the basis named by ci_basis, which autofit could not use. It is now rejected with a clear message; other bases may still be empty. Refs #208 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PyAutoNerves half of hpc-campaign phase 4 (#208; PyAutoFit side in the companion PR). Adds grid carbon-intensity values to the site config, so
autofit.campaign.carbonreads them from config rather than code.site_config.py: an optionalcarbon_intensitytable keyed by basis (regional,national,desnz). Each basis has a low/central/highSiteValuein gCO2e/kWh that can be markedunverified.Site.ci(basis)reads it, andvalidate()rejects a site whoseci_basisbasis has no value.site/ral.yaml, all values marked unverified and sourced from scoping report §1.4:ci_basis: regional.Heart RED override (development only)
Heart was RED at the start of this task (2026-10-30): release validation FAILED (stage integrate); PyAutoHeart/workflows/Release Integrate failure; PyAutoNerves
test_fitsable.py::test__output_to_fitsred; unit-test timing 1 regression (>3× baseline), 14 slow; autogalaxy red; release validation NOT release_ready (v2026.10.30.1.dev85101); autolens_profiling red; worktree drift 1 dirty. The human authorized the Human override for Heart RED (development only) live for hpc-campaign phases 3 and 4 ("Override, proceed"). This PR touches no RED item and does not fix Heart. Merging still needs green CI and a separate/prm; it permits no release.Test plan
Site.ci, an empty basis being rejected, and defaults when the table is absent.ci_basisvalue is now refused).Refs #208
🤖 Generated with Claude Code