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

pybricks / pybricks-micropython / 19714827208
56%
master: 56%

Build:
Build:
LAST BUILD BRANCH: btstack
DEFAULT BRANCH: master
Ran 26 Nov 2025 07:13PM UTC
Jobs 2
Files 136
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

26 Nov 2025 07:11PM UTC coverage: 56.509% (-0.2%) from 56.701%
19714827208

push

github

laurensvalk
pbio/color/util: Add heuristic distance for saturated colors.

The bicone mapping is highly distant dependent, which makes it suitable in
limited cases, and it doesn't work great with the default colors.

If only saturated or grayscale colors are in the mapping, we can generally get
a much better result by looking at hue only for saturated colors and looking at
value only for unsaturated colors, and use the saturation to decide which to
pick. This also means we won't need the workaround of having negative V for None.

The logic here is that if you do specify fine-grained, calibrated colors, then
it will use the original bicone distance mapping.

0 of 24 new or added lines in 2 files covered. (0.0%)

42 existing lines in 3 files now uncovered.

4523 of 8004 relevant lines covered (56.51%)

16813989.8 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
8
0.0
0.0% pybricks/util_pb/pb_color_map.c
16
36.0
-64.0% lib/pbio/src/color/util.c

Uncovered Existing Lines

Lines Coverage ∆ File
8
0.0
0.0% pybricks/util_pb/pb_color_map.c
16
0.0
0.0% pybricks/pupdevices/pb_type_pupdevices_colorsensor.c
18
0.0
0.0% pybricks/pupdevices/pb_type_pupdevices_colordistancesensor.c
Jobs
ID Job ID Ran Files Coverage
1 virtualhub - 19714827208.1 26 Nov 2025 07:13PM UTC 114
45.6
GitHub Action Run
2 PBIO - 19714827208.2 26 Nov 2025 07:16PM UTC 74
65.88
GitHub Action Run
Source Files on build 19714827208
  • Tree
  • List 136
  • Changed 7
  • Source Changed 7
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19714827208
  • ff08f8da on github
  • Prev Build on work (#19663246158)
  • Next Build on work (#19734626831)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc