Emissions CSV export#1753
Open
aaccensi wants to merge 2 commits into
Open
Conversation
3 tasks
1b41948 to
f67417e
Compare
…pport, and emissions CSV endpoints
f67417e to
a60a0e2
Compare
noracato
approved these changes
May 21, 2026
Member
noracato
left a comment
There was a problem hiding this comment.
Very elegant solution with the transform attribute. Nice find!
Specs look good as well! Great work
…tors and subsectors.
Member
Member
|
ETEngine should generally only be touched by devs. The specs are fast internal tests to see if the code is behaving correctly under different cases and circumstances. I will revert the commit for you. |
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.
Context
As part of the emissions project we want to be able to export the emissions data in a CSV. The existing ConfiguredCSVSerializer serializes graph data to CSV based on a YAML config in ETSource, but it only supported simple query-based columns. The emissions export requires iterating over nodes in a group and reading attributes directly from each node, including support for both the energy and molecules graphs.
Implemented changes
Expanded ConfiguredCSVSerializer to support two new column types:
Other changes:
period:parameter (:presentor:future) to the serializer to select which graph to use for node expansion. Existing column types (present, future, unit, query) are unaffected.emissions_presentandemissions_futureCSV endpoints backed by a newemissions_csv.ymlconfig in ETSource.Related
This effort is in 3 places but only 2 of them have PRs (to merge back into the general emissions branch)
Checklist