Add anchor ordinal (Nth match) + anchor_locate_all#334
Merged
Conversation
Not up to standards ⛔
|
|
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.



Summary
Round-11, automation-core (locate lane).
anchor_locatealways returned the single nearest match — no way to pick "the 2nd row below the header" or enumerate every matching row.Layers
je_auto_control/utils/anchor_locator/locator.py—ordinalparam onanchor_locate(1-based;ordinal=1= nearest, backward-compatible) and newanchor_locate_allreturning every match sorted by distance. Shared pure_rankedhelper (filter by relation, sort by distance). No PySide6.anchor_locate_allre-exported +__all__;anchor_locategainsordinal.AC_anchor_locateordinal param, newAC_anchor_locate_all→ {count, matches}.ac_anchor_locateordinal, newac_anchor_locate_all.Tests / docs
test/unit_test/headless/test_anchor_ordinal_batch.py— 8 headless tests (ordinal Nth selection, out-of-range, locate-all sorted, empty-on-missing-anchor, relation-filters-before-ordinal + wiring + facade) via monkeypatched candidates. Existing anchor tests still pass (29 total).v124_features_doc.rst+ toctrees; 3 WHATS_NEW entries.Note: anchor commands have no Script Builder spec (Locator objects don't fit the flat field model — consistent with the base feature). Codacy may show
action_requiredfrom its coverage gate only (issues=0).