Skip to content

Accept a caller-supplied spec and data in .bare.create_res - #559

Draft
Wegatriespython wants to merge 1 commit into
newclimate-2025from
single-region-res
Draft

Wegatriespython wants to merge 1 commit into
newclimate-2025from
single-region-res

Conversation

@Wegatriespython

Copy link
Copy Markdown
Contributor

In the spirit of #551, this PR lets create_res() build a reference energy system from any Spec and any parameter-data callback, so the same function serves a global model and a single-region model built from its own inputs.

Additionally this PR adds one-region node code lists for the four CAEECRES(OSCE) regional groupings, each resolving its region as a single node whose members are the countries of the grouping;

How to review

Drafting so this is part of the OSCE PR stack.

  • Read the diff and note that the CI checks all pass.
  • Ensure that changes/additions are self-documenting.

PR checklist

  • Continuous integration checks all ✅
  • Add or expand tests; coverage checks both ✅
  • Add, expand, or update documentation.
  • Update doc/whatsnew.

@Wegatriespython
Wegatriespython marked this pull request as draft September 4, 2026 11:53
@Wegatriespython Wegatriespython added enh New features or functionality p:OSCE labels Sep 4, 2026
Let create_res() build a reference energy system from any Spec and any
parameter-data callback, so the same function serves a global model and a
single-region model built from its own inputs. Add one-region node code lists
for the four OSCE regional groupings, each resolving its region as a single
node whose members are the countries of the grouping; get_parent_region() to
find the region of a larger code list that contains a country; and subset and
as_str options for HasCoords, the first rejecting labels outside a declared
set, the second comparing labels as strings.
@Wegatriespython
Wegatriespython changed the base branch from main to newclimate-2025 September 4, 2026 12:52

This branch was successfully deployed

1 active (outdated) deployment
publish a2554bba Deployed Sep 4, 2026 by Wegatriespython via publish #3399
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enh New features or functionality p:OSCE

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant