-
Notifications
You must be signed in to change notification settings - Fork 961
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add validation test for emissions factor references provided in zone configs #6001
Merged
VIKTORVAV99
merged 34 commits into
electricitymaps:master
from
jayaddison:tests/emissions-factor-reference-validation
Oct 24, 2023
Merged
Changes from 10 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
1464290
zone config: retain 'emissionFactors' key after configuration is loaded
jayaddison 2a483ce
tests: add test case to validate the reference sources listed in zone…
jayaddison 4075bdc
Run 'poetry run format'
jayaddison eb39522
Merge branch 'master' into tests/emissions-factor-reference-validation
jayaddison e4e701c
Zone model: add emissionFactors field to allow pydantic validation to…
jayaddison 3ca1990
config.model: relocate 'Zone' class definition so that it can referen…
jayaddison 88ea0a6
config.model: add ZoneEmissionFactors model to represent emissions fa…
jayaddison 2de8e37
config.model: cleanup: remove outdated comment
jayaddison efd56dc
config.model: cleanup: use snake-casing
jayaddison 009b652
tests: migrate to a pydantic-model-based reference-testing approach
jayaddison bf3d534
Revert "config.model: cleanup: use snake-casing"
jayaddison dc894e1
Revert "config.model: cleanup: remove outdated comment"
jayaddison a56fb1b
Revert "config.model: add ZoneEmissionFactors model to represent emis…
jayaddison 9c45e87
Revert "config.model: relocate 'Zone' class definition so that it can…
jayaddison ec67a64
Revert "Zone model: add emissionFactors field to allow pydantic valid…
jayaddison 24579d3
Revert "zone config: retain 'emissionFactors' key after configuration…
jayaddison 46a5e02
tests: refactor zone reference-testing to use existing CO2EQ_CONFIG_M…
jayaddison 9ea16a0
tests: apply isort-preferred module formatting
jayaddison d375bff
tests: every zone production mode estimate must provide a source refe…
jayaddison 65e3856
config: refactor-out HOPS source reference into an origin document an…
jayaddison 1280f08
config: refactor-out references to IEA MX energy generation ix report…
jayaddison a40152b
config: refactor-out references to IPCC 2014 Ocean (includes tidal) e…
jayaddison 9558c35
config: refactor-out references to data partially derived from the Gu…
jayaddison cd94f6b
config: refactor-out references to Enerdata as a data source from zon…
jayaddison bb9317e
tests: factor-out special-case Electricity Maps reference by rephrasi…
jayaddison 86df047
config: rephrase CA-AB source assumption note into a more grammatical…
jayaddison cf04019
config: fixup: data for IN-KA shouldn't be described as an assumption…
jayaddison 1de0de2
config: factor-out sources for assumed 50-50 solar:wind renewables mi…
jayaddison 42e27fe
tests: cleanup: 'emission_factors' and the 'zone_overrides' subfield …
jayaddison 96974de
tests: add assertion that top-level sources configuration is present …
jayaddison 423c304
tests: lint fixup: comment brevity to fix within line length limits
jayaddison b0acba5
tests: nitpick: standardize error message format, and include full pa…
jayaddison ff5cc0c
Merge branch 'master' into tests/emissions-factor-reference-validation
jayaddison e483392
config: add top-level 'source' entry to CH zone config for results de…
jayaddison File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to figures from the latest currently-available iteration of the same Wikipedia source page, in Y2021 the ratio of
solar:wind
capacity was6227:1673
.However: those figures predate the conflict in Ukraine that began in Y2022 and so the numbers may not correspond to the situation more recently. Note also that data for Ukraine is currently unavailable on Electricity Maps (the parser has been down for a while; I'm not cross-linking the relevant issue thread here because it's not relevant to most of this pull request).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also: installed capacity ratio doesn't necessarily indicate actual output
capacity. So even though the capacity ratio may have changed, the ratio itself may not be suitable to map 1-1 to the percentages assumed here.