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

dask / dask-image / 98
100%
main: 99%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions/checkout-7
DEFAULT BRANCH: main
Ran 03 Sep 2018 03:25AM UTC
Jobs 3
Files 23
Run time 16s
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

pending completion
98

push

travis-ci

web-flow
Drop vendored copy of indices and uses thereof (#56)

* Rewrite `center_of_mass` to use `arange`

Instead of using the vendored `indices` function to multiply the image
with, rewrite `center_of_mass` to just use `arange` and rely on Dask to
handle the broadcasting when multiplying with the image. Should be a bit
more efficient and should avoid the need for a compatibility function
using `indices` in `center_of_mass`.

* Rewrite `_ravel_shape_indices` without `indices`

Instead of relying on a vendored copy of `indices` to construct the
raveled shape indices, just use `arange` for each dimension and rely on
Dask to handle the broadcasting for us. Also handle any scalar
multiplication that would occur within the arguments to `arange`. This
creates a much simpler Dask graph and avoids relying on a vendored copy
of `indices`.

* Drop note in `_ravel_shape_indices`

As we now are leveraging just `arange` to handle construction of the
indices in `_ravel_shape_indices`, this note no longer applies. Plus we
are better able to handle chunking with what we are doing in this code
than would happen with `reshape` naively. So this really isn't a
workaround any more, but an efficient solution to the problem.

* Drop vendored copy of `indices`

As we are no longer using `indices` in `ndmeasure`, we no longer need to
include a vendored copy of `indices`. So go ahead and drop this function
from the `_compat` module.

* Drop tests for vendored `indices`

As we no longer include a vendored copy of `indices` in `ndmeasure`,
there is no need to have tests for it. So go ahead and drop the tests.

213 of 213 branches covered (100.0%)

Branch coverage included in aggregate %.

748 of 748 relevant lines covered (100.0%)

2.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 98.1 (PYVER="36") 03 Sep 2018 03:25AM UTC 0
100.0
Travis Job 98.1
2 98.2 (PYVER="35") 03 Sep 2018 03:25AM UTC 0
100.0
Travis Job 98.2
3 98.3 (PYVER="27") 03 Sep 2018 03:25AM UTC 0
98.76
Travis Job 98.3
Source Files on build 98
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #98
  • cbbcea87 on github
  • Prev Build on master (#305)
  • Next Build on master (#18477935)
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