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

dask / dask / 10917 / 7
53%
master: 53%

Build:
DEFAULT BRANCH: master
Ran 06 Mar 2019 02:54PM UTC
Files 108
Run time 402min
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

06 Mar 2019 01:57PM UTC coverage: 91.098% (-0.005%) from 91.103%
PYTHON=3.6 NUMPY=1.14.1 PANDAS=0.22.0 TEST='true' LINT='true' COVERAGE='true' PARALLEL='false' XTRATESTARGS= TEST_IMPORTS='true'

push

travis-ci

mrocklin
Use mask selection in compress (#4548)

* Trim Dask Array that extends past condition

If the `condition` is shorter than the Dask Array, treat it as if it is
filled with `False` values at the end. In other words, trim the Dask
Array down to the length of the `condition`. This works just as well
when the `condition` is a Dask Array as when it is a NumPy array.

* Use masked selection to implement compress

As masked selection is supported by Dask Arrays, NumPy arrays, and other
array types, go ahead and change the `compress` code to use masked
selection in all cases. Should make it easier for other array types to
benefit from this code. Simplifies our code and removes a branch as
well.

* Coerce `compress` arguments to Dask Arrays

* Drop unneeded check with `condition` in `compress`

* Swap `condition` and `axis` checks in `compress`

* Drop `condition` length check

If the length of `condition` is shorter, the array will be shortened
with or without this check. Otherwise if the length of `condition` is
the same, then this will be a no-op (and we already test for this). In
the rare event `condition` is longer than our array, this will do
nothing, but we will generate an error later.

* Simplify slicing with `condition`

Uses the same comprehension trick for truncating the Dask Array above
when slicing with the mask.

17193 of 18873 relevant lines covered (91.1%)

0.91 hits per line

Source Files on job 10917.7 (PYTHON=3.6 NUMPY=1.14.1 PANDAS=0.22.0 TEST='true' LINT='true' COVERAGE='true' PARALLEL='false' XTRATESTARGS= TEST_IMPORTS='true')
  • Tree
  • List 0
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 9886
  • Travis Job 10917.7
  • 7bf6172a on github
  • Prev Job for PYTHON=3.6 NUMPY=1.14.1 PANDAS=0.22.0 TEST='true' LINT='true' COVERAGE='true' PARALLEL='false' XTRATESTARGS= TEST_IMPORTS='true' on master (#10908.3)
  • Next Job for PYTHON=3.6 NUMPY=1.14.1 PANDAS=0.22.0 TEST='true' LINT='true' COVERAGE='true' PARALLEL='false' XTRATESTARGS= TEST_IMPORTS='true' on master (#10918.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