Skip to content

Plotting: geometry-aware auto weights for Stacked/Paired#482

Merged
ocots merged 1 commit into
mainfrom
feat/plotting-auto-weights-geometry
Jul 9, 2026
Merged

Plotting: geometry-aware auto weights for Stacked/Paired#482
ocots merged 1 commit into
mainfrom
feat/plotting-auto-weights-geometry

Conversation

@ocots

@ocots ocots commented Jul 9, 2026

Copy link
Copy Markdown
Member

Summary

Geometry-aware :auto weights for Stacked and Paired combinators.

Changes

  • Stacked: weights=:auto now uses grid_shape(child)[1] (number of rows) instead of leaf count
  • Paired: weights=:auto now uses grid_shape(child)[2] (number of columns) instead of leaf count
  • This keeps cell heights uniform when a paired block is nested inside a stack (e.g., Stacked(Paired(state, costate), control, …) gets row weights n : l : … rather than 2n : l : …)
  • Updated tests to verify the discriminating cases
  • Bumped version to 0.27.1-beta

Context

Needed by the CTModels case layer (Phase 3). CTFlows is unaffected.

@ocots
ocots merged commit 23a22d2 into main Jul 9, 2026
6 checks passed
@ocots
ocots deleted the feat/plotting-auto-weights-geometry branch July 9, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant