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

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

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions/checkout-7
DEFAULT BRANCH: main
Ran 17 Sep 2018 07:03PM UTC
Jobs 3
Files 21
Run time 10s
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
127

push

travis-ci

web-flow
Handle structured dtype in labeled_comprehension (#66)

* Type cast record values in `labeled_comprehension`

Make sure that type casting within `labeled_comprehension` and
associated utility functions handles record (a.k.a. structured) values
in addition to typical scalar types.

* Scalar arrays in _labeled_comprehension_delayed

Instead of squeezing NumPy arrays into scalars when returning results
from `_labeled_comprehension_delayed`, actually just return NumPy 0-D
scalar arrays. These behave a little better in some cases (e.g. when a
function returns a scalar array).

* Use 1-D singleton array in `labeled_comprehension`

To better handle structured type values that might be returned from the
custom user function, coerce all results returned by
`labeled_comprehension` into 1-D singleton arrays. As Dask Arrays seem
to do a better job of handling structured types when they have some
shape to them, this addresses returning structured types.

* Adjust `labeled_comprehension` result handling

Preallocate an array to store the result in
`_labeled_comprehension_delayed`. Makes sure that writing into the
`default` value doesn't happen by accident. Also makes sure that only
scalar values are handled from custom user functions. As not enforcing
these constraints may result in the computation breaking later in more
confusing ways, explicit handling of them in
`_labeled_comprehension_delayed` should point out to the user where they
may have gone wrong.

* Test `labeled_comprehension` with structured types

Include a test using `labeled_comprehension` with structured dtypes.

200 of 200 branches covered (100.0%)

Branch coverage included in aggregate %.

702 of 702 relevant lines covered (100.0%)

2.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 127.1 (PYVER="36") 17 Sep 2018 07:03PM UTC 0
100.0
Travis Job 127.1
2 127.2 (PYVER="35") 17 Sep 2018 07:03PM UTC 0
100.0
Travis Job 127.2
3 127.3 (PYVER="27") 17 Sep 2018 07:03PM UTC 0
98.57
Travis Job 127.3
Source Files on build 127
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #127
  • ee4349b4 on github
  • Prev Build on master (#402)
  • Next Build on master (#18836962)
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