Repository navigation
props: accept around radius 0 dropping one-unit neighbours - #263
Merged
Merged
Conversation
The baseline (upstream/master) counts nodes one storage unit (1e-7 degrees) apart as coincident under around radius 0 in some cases: when the candidate lies inside an input way's box, its 1e-8 box pre-check is skipped and is_inside's 1e-7 test matches the neighbour. PR #262 makes radius 0 compare stored positions, so it never matches them, and props reported every such case as a difference from the baseline. Treat a difference as fixed when the query has around radius 0, both builds succeed, the candidate's result is a strict subset of the baseline's, and each element only the baseline returns has a position (its own, its nodes', or its members') next to another node one unit away. Remove this once upstream settles the radius-0 semantics (#261). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01736kJUqyDw9zM3Bkh2W2QT
This was referenced Nov 28, 2026
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.
Lets
propsaccept both answers foraroundwith radius 0 between nodes one storage unit apart, until upstream settles the semantics (#261). Needed for #262'spropsrun to pass. Targetsbench-tools, where thepropsworkflow takesprops.pyfrom.Change
bench/props/props.pygetsaround0_agrees(data, query, cand, base), used next towr_bn_agreesinrun_checksandrun_pairs. A candidate/baseline difference counts as fixed (not a failure) when all of these hold:aroundwith radius 0 (around:0oraround.SET:0);Anything else, including a candidate that adds results, still fails. The helper
element_positionsreads both the plainDataand theHistorymodel. One file, +50/−1.Why
On
upstream/master555f744,around:0matches a node one unit from an input point only when the candidate lies inside an input way's box: there the 1e-8 box pre-check is skipped, andis_inside's< 1e-7test lets the neighbour through. #262 makes radius 0 compare stored positions (tolerance 0.5e-7), so it never matches them. The synthetic sets put nodes on a 1e-7 lattice, sopropsflagged 164 checks on #262 (see the explanation on #262). Real data rarely hits this: #262'sfuzzrun (6,000 queries) andhistoryrun (2,000) show no differences.Testing
Locally, 4-core VM,
--history-import-binpointing at abetter-importsbuild:around-bbox-points) againstupstream/master555f744, seeds 1–60: no new failures. Thearound:0differences are reported as fixed, for example "date around rel = around members (nodes)" 109 and "(ways)" 34. Failures shared with the baseline are unchanged.upstream/mastera9d8f15 against 555f744, seeds 1–10. a9d8f15 does match one-unit neighbours, so its results are supersets. That gives 31 new failures, allaroundchecks: the subset guard holds.Limitations
aroundradius 0, strict subsets and lattice neighbours keeps that from hiding other kinds of regression.Generated by Claude Code