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

dask / dask-image / 162 / 2
100%
main: 99%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions/checkout-7
DEFAULT BRANCH: main
Ran 01 Oct 2018 04:14AM UTC
Files 21
Run time 1s
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

01 Oct 2018 04:08AM UTC coverage: 100.0%. Remained the same
PYVER="35"

push

travis-ci

web-flow
Rewrite `center_of_mass` using `labeled_comprehension` (#78)

* Add a custom kernel for `center_of_mass`

Create a custom kernel of `center_of_mass` to use with
`labeled_comprehension`. In the kernel take the ROI's intensity and 1-D
positions along with a few arguments to be bound before calling
`labeled_comprehension` (like the shape of the original image and the
results expected type). Use these to unravel the 1-D positions back into
N-D positions and computed the center of mass for the given ROI to pass
back in an expected form. As `labeled_comprehension` can only handle
scalars being returned for each ROI, use a structured type to pass back
each coordinate of the center of mass in a different field. The
structured type uses a simple naming scheme based on a string holding
the index corresponding to that dimension.

* Use `labeled_comprehension` in `center_of_mass`

Rewrite `center_of_mass` to use `labeled_comprehension` along with a
custom kernel. This simplifies the Dask graph significantly, improves
the performance noticeably, and cleans up the code a bit as the whole
center of mass computation is now handled by the custom kernel function.
Only a little bit of bookkeeping is needed to bind a few extra arguments
(since `labeled_comprehension` does not handle keyword arguments) to the
custom kernel and to convert the custom structured array type (needed
since `labeled_comprehension` cannot handle results with a shape) into a
normal array before returning it user.

231 of 231 branches covered (100.0%)

Branch coverage included in aggregate %.

729 of 729 relevant lines covered (100.0%)

1.0 hits per line

Source Files on job 162.2 (PYVER="35")
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 19158374
  • Travis Job 162.2
  • f9aea094 on github
  • Prev Job for on master (#545.1)
  • Next Job for on master (#19159382.3)
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

© 2026 Coveralls, Inc