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

dask / dask-image / 252
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions/checkout-6
DEFAULT BRANCH: main
Ran 10 Feb 2019 08:35PM UTC
Jobs 4
Files 22
Run time 6min
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
252

push

travis-ci

jakirkham
Distributed labeling (#94)

* Initial work on proper distributed labeling

* Use vindex (blech)

* Initial untested implementation

* _label_adj_graph working

* Almost working except relabeling

* Add missing imports

* Fix indexing

* Fix imports and total count

* Specify the chunking in `_relabel_components`

By specifying the chunking of the result from `map_blocks`, we are able
to work with an older version of Dask.

* Fix some flake8 errors

* Drop transpose of `all_mappings`

As we can concatenate along a different axis, which serves our purpose
just as well, go ahead and change the code accordingly to avoid a
transpose.

* Use NumPy's `in1d` instead of `isin`

As older versions of NumPy that we support and test against don't
include `isin`, switching to using `in1d`, which has been around longer.
Since the array in question is already 1-D, there is no need for us to
reshape the result after calling `in1d`. So this is sufficient for our
use case.

* Handle empty adjacency graph for singleton chunk

When there is a singleton chunk, there are no shared faces between
chunks to construct an adjacency graph from. In this case ensure there
is at least an empty array to start with. This doesn't alter the cases
where there are multiple chunks that do share faces. Though it does
avoid branching when there is a single chunk with no shared faces.

* Drop unused `i` from `numblocks` `for`-loop

* Fix connected components dtype

Previously we were incorrectly determining the connected components
dtype. This fixes it by inspecting the result on a trivial case and
seeing what the dtype is. Then using that to set the delayed type when
converting to a Dask Array.

* Fix non-zero increment's type to be `LABEL_DTYPE`

* Make sure relabeling array matches label type

* Get right index for connected component array

* Fix incorrect labeling between multiply-matched labels

* Fix test to test equivalent ... (continued)

212 of 213 branches covered (99.53%)

Branch coverage included in aggregate %.

799 of 800 relevant lines covered (99.88%)

3.98 hits per line

Jobs
ID Job ID Ran Files Coverage
1 252.1 (PYVER="37") 10 Feb 2019 08:35PM UTC 0
99.61
Travis Job 252.1
2 252.2 (PYVER="36") 10 Feb 2019 08:35PM UTC 0
99.61
Travis Job 252.2
3 252.3 (PYVER="35") 10 Feb 2019 08:41PM UTC 0
99.81
Travis Job 252.3
4 252.4 (PYVER="27") 10 Feb 2019 08:41PM UTC 0
98.44
Travis Job 252.4
Source Files on build 252
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #252
  • 638cf24e on github
  • Prev Build on master (#898)
  • Next Build on master (#22262088)
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