Skip to content

DynamicalIndexer takes refine_side - #37

Merged
CSSFrancis merged 1 commit into
mainfrom
feat/refine-side
Nov 13, 2026
Merged

CSSFrancis merged 1 commit into
mainfrom
feat/refine-side

Conversation

@CSSFrancis

Copy link
Copy Markdown
Member

DynamicalIndexer(..., refine_side=128) sets the long side, in pixels, that the refine and the fits read the patterns at, in the frame's aspect. The search keeps its own size, and the default is 128, as before.

Autopilot's new Resolution setting (Good, Better, Best) uses it to fit at 256 from 4 frames a point and 512 from 16. Patterns arrive that many times more slowly, so the fit has that much more time per pattern. On a twin pattern, indexing plus the strain fit takes 22, 49 and 155 ms per 256 patterns at 128, 256 and 512. Until this is released, Autopilot sets the module's REFINE_SIDE only while it builds the indexer.

Test: test_the_refine_reads_the_patterns_at_the_side_asked_for. Ran ruff check ., ruff format --check . and tests/test_dynamical_indexer_seam.py.

https://claude.ai/code/session_01DzXsKAUJSM4XYpqqzrcuV5

…tion

A scan summed from several frames a point has that many times longer per
pattern, and can fit at a finer resolution (on a twin pattern 22, 49 and
155 ms per 256 patterns at 128, 256 and 512, indexing and fitting the
strain). The default is 128, as before.

Claude-Session: https://claude.ai/code/session_01DzXsKAUJSM4XYpqqzrcuV5
@CSSFrancis
CSSFrancis merged commit 1370c0a into main Nov 13, 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.

1 participant