Repository navigation
tests: fix the bearing-vs-Geod tolerance; add pyproj to requirements-dev - #305
Open
jonfroehlich wants to merge 2 commits into
Open
jonfroehlich wants to merge 2 commits into
jonfroehlich wants to merge 2 commits into
Conversation
…-dev test_great_circle_matches_the_geodesic_used_by_stage_1 compared the spherical bearing with WGS84 Geod.inv at 0.01 deg and failed wherever pyproj was installed (0.080 deg at 40.7 N), which CI hid by skipping it. The difference is the spherical/ellipsoidal one, under 0.2 deg at any latitude, so 0.25 deg keeps the docstring's requirement (far inside the ~3 deg residual). With the test fixed, pyproj goes into requirements-dev.txt so CI runs it and check_274.py's (b') part (PR 300 review notes). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… holds on numpy 2.2.6 With pyproj in requirements-dev, CI ran check_274's (b') part for the first time, and Python 3.10 (numpy 2.2.6, the last numpy for 3.10) regenerated the three bprime scores.json files with the last bits of the weighted sums moved (~1e-15 relative; tp_w 2685.053274 vs 2685.0532739999876). nodes.csv was byte-identical. Per the repo's rule, round at the writer rather than loosen the byte-compare: bprime-score now writes its floats rounded to 9 decimals. The three committed files are regenerated (scored_utc kept). Python 3.10 with numpy 2.2.6 and Python 3.12 with current numpy now produce identical bytes, and check_274.py reports 0 problems under both. Every value is unchanged to 9 decimals; the other #300 outputs are untouched. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
tests/test_stage1_bearing_residual.py::test_great_circle_matches_the_geodesic_used_by_stage_1fails onmainwherever pyproj is installed: the spherical bearing and WGS84Geod.invdiffer by 0.080° at 40.7° N against a 0.01° tolerance. CI hid it because pyproj is not inrequirements-dev.txt, so the test skipped.pyprojadded torequirements-dev.txt, so CI runs this test and the (b′) part ofcheck_274.py(thestage1_crosswalk_274entry), which Stage 1 crosswalk detector: s1 to s5, crosswalk_s4 adopted (#274) #300's review left CI-skipped for exactly this reason.bprime/scores.jsonfiles with the weighted sums' last bits moved (~1e-15 relative;nodes.csvidentical), so the byte-compare failed.score_274.py bprime-scorenow rounds its floats to 9 decimals at the writer, and the three committed files are regenerated (scored_utckept). Verified locally withuv: Python 3.10 + numpy 2.2.6 and Python 3.12 + current numpy produce identical bytes, andcheck_274.pyreports 0 problems under both. Every value is unchanged to 9 decimals; no other Stage 1 crosswalk detector: s1 to s5, crosswalk_s4 adopted (#274) #300 output is touched.🤖 Generated with Claude Code — Opus 5.5, claude-opus-5-5