Repository navigation
Conversation
`relations:` states which combinations of its `dims:` exist. A new `maps:` section gives each row of a subject, a dimension or a relation, one label of the dimension its `dim:` names, with `missing:` set on each map. A map is read as `subject[map]`, and `subject[map]` alone tests that the row has a label. `merge` joins the maps of a subject, so a fragment declares only the maps it reads. The split of #1007 without `in:` (#980): a relation's bare name still stands in any `where:`. Co-Authored-By: Fabian Hofmann <fab.hof@gmx.de> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018B3nA1xxh6NMJN6mrYY34Q
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018B3nA1xxh6NMJN6mrYY34Q
Documentation build overview
48 files changed ·
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018B3nA1xxh6NMJN6mrYY34Q
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018B3nA1xxh6NMJN6mrYY34Q
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018B3nA1xxh6NMJN6mrYY34Q
This was referenced Nov 16, 2026
The TIMES examples of #1021 in this PR's spelling: the relations of capacity.yaml take dims:, and trade.yaml gives trade_link its two regions and two commodities as maps, read as trade_link[to_region]. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018B3nA1xxh6NMJN6mrYY34Q
sparse.yaml in this PR's spelling: connection and active take dims:, and the bus a port feeds is a map of connection. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018B3nA1xxh6NMJN6mrYY34Q
This branch has not been deployed
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.
Note
The following content was generated by AI.
What this changes
relations:states which rows exist;maps:gives each row of a subject one label, withmissing:per map. The split of #1007 alone, withoutin:(#980). Stacked on #1021, whose TIMES examples it restates.TIMES (
examples/times/trade.yaml, from #1021):Why
missing:, a fragment declares only the maps it reads, a dimension is its own subject (generator[bus]), one-to-one with datarecord properties (Datarecord alignment #944)in:: the agreed design, the decisions made and the questions still open #1000 and Multi-dimensions as explicit tuple indexes #1011 keeps a lookup section keyed by subject; the sparse-set question is compared in Sparse sets: the decision axes and their combinations #1019Method, gate output, what moved
630309a: feat(language): relation rows may index an entry #980's diff reverted,main(docs(pypsa): the example page shows one fragment #1010) merged, squashed onto9a0f59b; co-authored by @FabianHofmann03c0ea3):capacity.yaml's relations takedims:;trade.yaml'slink_endsbecomes maps oftrade_linkin:; refusing a relation's bare name inwhere:; the index set in docs, glossary and legend; theindex-setadvice; the "dimension of pairs" row inlimits.mdwhere: connectionrestored where feat(language)!: maps give labels, relations give rows #1007 wrotein: [connection](docs, tests, golden model);relations-where-bare.svgback to itsmainversiondims:is refused withwhere: <relation>as the rewrite, in place ofin:mainin its syntax; none reproduces there, so all stay here with their tests:where::mainwrites a relation name, which loadsintdimension reading the subject's dtype: a dimension is a subject only with mapsnotcomplements proved apart:mainrefuses the pair ("ends has no row"); the gap needs per-mapmissing:in:tests and the bare-name refusal tests go with feat(language): relation rows may index an entry #980;test_a_where_that_reads_a_relation_or_a_map_loadsnow covers a bare relation inwhere:03c0ea3: ruff, ruff format, pyrefly (0 errors), pytest (4207 passed, 1 skipped), typos,zensical build --strict, prettier on changed pages; schema, goldens, generated pages regenerated. CI rancompile-texgreen ata096d2ekey:/values:: docs(calliope): all of calliope's math is a set of fragments that merge, with its modes laid over them as patches #770, docs(pypsa): the linearized unit commitment names the units it tightens as a mask #887, docs(pypsa): the pypsa spec names its fix, ext, commitment, maintenance and ramp row sets as masks #888, docs(pypsa): the PyPSA spec is written as fragments, with each committable class, the relaxed commitment and the risk preference as layers that a model takes or leaves out #902, feat(composition): rename gives a spec other names, so one fragment can serve several classes in one merge #905, docs(pypsa): the file states four more piecewise curves #989🤖 Generated with Claude Code
https://claude.ai/code/session_018B3nA1xxh6NMJN6mrYY34Q