Repository navigation
feat(planning): declarative pattern primitive + hoop angle naming fix (S1) - #300
Merged
Merged
Conversation
…ming Stage 2 / S1 (#295). Introduce PatternSpec, a single machine-agnostic description of a winding layer on the developed cylinder, with adapters mapping hoop/helical/skip onto it (hoop = alpha->90, skip = lay:false). The primitive is constructed but not yet lowered -- the planner still uses the per-pattern generators -- so output is unchanged and all goldens stay byte-equal. Also rename hoop's misnamed `wind_angle` local to `delivery_head_lean`: it is the delivery-head tilt (90 - atan(D/w)), not a fiber/wind angle. Document the meridian-referenced wind-angle convention as normative. Refs #137.
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.
Closes #295. First slice of the Stage 2 epic #137.
Byte-safe groundwork — introduces the declarative pattern primitive and normalizes naming, with no output change (all goldens stay byte-equal; the planner still uses the per-pattern generators until S2).
What's here
fiberpath/planning/pattern.py—PatternSpec, one machine-agnostic description of a winding layer on the developed cylinder, plus adapters mapping each layer model onto it:pattern_number/skip_index) + turnarounds;alpha → 90°limit of that path;lay=False, a non-laying reposition.plan_hoop_layer's misnamedwind_anglelocal (it's the delivery-head lean,90 − atan(D/w), not a fiber angle) renamed todelivery_head_lean, with a comment tying it toPatternSpec.alpha_deg.windAngledocumented as the normative meridian-referenced convention (0° axial, 90° hoop), noting hoop is its→ 90°limit.Verification
tests/planning/test_pattern.py).ruff format --check,ruff check,mypyall clean.Not in this slice
The primitive is constructed but not lowered — the single developed-surface lowering + equivalence harness lands in S2 (#296), which is where output (and goldens) change.