Emissions CSV export#3443
Open
aaccensi wants to merge 80 commits into
Open
Conversation
… for testing the production methods
…gs crude oil nodes
* Add molecule node examples * Create 35 molecule nodes for emissions accounting * Create groups for all emission molecule nodes * Minor corrections --------- Co-authored-by: robindesmit-quintel <robin.desmit@quintel.com>
…ing subcategories
mabijkerk
reviewed
May 21, 2026
mabijkerk
reviewed
May 21, 2026
Member
|
The data export works and the config looks clear enough: the rows are not too much. The data export does generate various numbers of decimals. Perhaps it is good to determine a fixed amount of decimals? |
Member
Discussed with @noracato that we have two approaches to do this:
This is something that we should discuss further. |
60f4575 to
d01967e
Compare
kndehaan
approved these changes
May 26, 2026
Member
|
Looking good! Once quintel/etengine#1753 has been reapproved, we can merge this. |
…tors and subsectors.
…ns to 6 decimal places
6bebf62 to
b3d86e7
Compare
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