Repository navigation
docs(examples): units connect to buses through numbered ports, listed by one relation that also masks the output efficiency - #948
Draft
FBumann wants to merge 3 commits into
Conversation
… by one relation that also masks the output efficiency Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0113aUbLChfQVBrVR5FVQnJq
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0113aUbLChfQVBrVR5FVQnJq
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015MPR9MKVJ9XwN68qHLrX5g
FBumann
added this pull request to stack #952
October 23, 2026 12:14
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
A new gallery example, "Units with ports" (
examples/connection.yaml). One relation lists the bus and role of each unit port, masksefficiencyto the output ports, and the balance groups through it by bus. Stacked on #945.What the example shows, method, gates, and what was not done
What it shows:
efficiencyhas coordinates only at the output ports, andmissing: 1fills only those. The legend prints: only where-flowinto its bus. Outsideconnection, no case claims the coordinate, andefficiencyis absent there, soinjectionis absent and the balance adds only real ports.Files:
examples/connection.yamldocs/examples/connection.md. The YAML and math block was written bypython -m tools.gallery, not by hand.MODELSintools/gallery.pymkdocs.ymldocs/examples/index.md.prettierignore, as a generated page.Gates on the head,
f18b1d7, which merges #945's head aftermainreached it through #894. The merge had no conflict. With pixi:pixi run lintpasses.pixi run testpasses: 3131 passed, 1 skipped. The new spec adds 11 tests through the suite'sSPECScorpus.pixi run docs-buildpasses.compile-texfailed on every document because the container could not download the TeX bundle. CI compilesconnection.texwith the rest.Earlier, on #945's
ff91d15plus this commit,python -m tools.gallerywrote every other page back unchanged.With #949. A trial merge of #949 (the case-check fixes) into this head conflicts only in
CHANGELOG.md, andpytestgives 3143 passed, 1 skipped.Not done:
link_outputandprocess_output. Moving it to aconnectionrelation would overlap with docs(examples): a link's or a process's output port reads its owner and its bus from one relation #892.-1on an input port comes from the casedraws, not from a casedmissing:(Casedmissing#940).Why
The gallery had no spec where one relation is both the map a balance groups through and the mask of a parameter. This is the pattern #944 needs for connections, written with relations as they are.
Generated by Claude Code