• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sgoodm / python-distance-rasters / 30370247867
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: 0.4.2
DEFAULT BRANCH: master
Ran 28 Jul 2026 02:59PM UTC
Jobs 1
Files 3
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Jul 2026 09:05PM UTC coverage: 100.0%. Remained the same
30370247867

push

github

sgoodm
Fix panic when many points share a coordinate on one axis

KdTree (kiddo's mutable, incrementally-built tree) has a hardcoded
bucket size of 32 and panics during construction if more than that
many points share the same value on one axis and end up in the same
leaf — plausible for dense binary raster masks (e.g. long straight
road segments) where many cells in a row or column are true.

Switch to ImmutableKdTree, built once via new_from_slice() (bulk
median-partition, order-independent) instead of one-at-a-time add()
calls. Matches the actual usage pattern here too: the tree is built
once and only queried afterward, never modified.

Added regression tests reproducing the failure shape (500 points
sharing one axis, well past the old bucket limit) for both row- and
column-aligned cases.

114 of 114 relevant lines covered (100.0%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30370247867.1 28 Jul 2026 02:59PM UTC 3
100.0
GitHub Action Run
Source Files on build 30370247867
  • Tree
  • List 3
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 5bf52f63 on github
  • Prev Build on main (#27713005921)
  • Next Build on 0.4.2 (#30370745264)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc