Handle curves and exports via the metadata endpoint#193
Open
louispt1 wants to merge 2 commits into
Open
Conversation
…d on curve metadata endpoint
louispt1
force-pushed
the
capacity-curves
branch
from
June 29, 2026 11:33
98e0881 to
39b3e6d
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
Fetch curves from the added metadata endpoints in etengine, with a fallback for version 2025-01. This way available curves and exports are discovered via the endpoint and cached, and then that information is re-used when fetching outputs.
Implemented changes
CurveMetadataService— fetches/curves/metadataand/exports/metadatafrom ETEngine at runtime, with in-memory TTL cache, disk cache keyed by base URL, and hardcoded fallback defaults for stable version useCurveRegistrywithcanonical(new name) /wire(on-wire name) split so curve requests remain compatible with2025-01engines that only know old names (e.g.merit_order, notelectricity_profiles)validators.py,annual_exports.py,hourly_output_curves.py, andexcel_utils.pyRelated
Goes with this etengine PR and this documentation PR
Checklist