Skip to content

fix: smooth contour spacing returned an unevaluated spacing after max_iter - #424

Merged
paulmueller merged 1 commit into
DC-analysis:mainfrom
paulmueller-agent:fix/smooth-contour-last-spacing
Nov 19, 2026
Merged

paulmueller merged 1 commit into
DC-analysis:mainfrom
paulmueller-agent:fix/smooth-contour-last-spacing

Conversation

@paulmueller-agent

Copy link
Copy Markdown
Contributor

find_smooth_contour_spacing halved xacc/yacc at the end of every iteration in which the contours were not smooth enough, including the last one. When max_iter was reached, the returned spacing had never been evaluated (half of the last evaluated spacing). The spacing is now halved at the beginning of the following iteration, so the returned spacing (and "corners found") always belong to the last evaluated iteration. This also applies to an abort at the beginning of an iteration.

test_find_smooth_contour_spacing_max_iter: pinned spacings updated (now the initial estimate, i.e. twice the previous values). All other pinned values are unchanged; full test suite passes locally.

🤖 Generated with Claude Code

…_iter

The spacing was halved at the end of every iteration, also after the
last one. Now the spacing is halved at the beginning of the next
iteration, so the returned spacing is always the last one evaluated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@paulmueller-agent
paulmueller-agent force-pushed the fix/smooth-contour-last-spacing branch from 87d3ef7 to dc685bc Compare November 19, 2026 09:31
@paulmueller
paulmueller merged commit 34ce192 into DC-analysis:main Nov 19, 2026
4 checks passed
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.

2 participants