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

dask / dask / 11233 / 7
53%
master: 53%

Build:
DEFAULT BRANCH: master
Ran 12 Apr 2019 09:24PM UTC
Files 108
Run time 6s
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

12 Apr 2019 08:26PM UTC coverage: 91.48% (+0.007%) from 91.473%
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

jakirkham
Fixed mean() and moment() on sparse arrays (#4525)

* Fixed mean() and moment() on sparse arrays

For proper creation of sparse auxiliary arrays, a dispatcher for ones_like has
been added. However, sparse arrays created from ones_like cause sparse
reductions to fail, as it would result in a dense array. To fix that, the arrays
have first to be converted to dense before, which ends up requiring a new
dispatcher for that purpose, and for already dense arrays must be bypassed, that
is here implemented as numpy.ndarray.view() to simply return a shallow copy of
the array.

This commit fixes https://github.com/dask/dask/issues/4523 and adds the tests
suggested in that issue.

* Reductions' numel() won't create ones() for unmasked arrays

* Add tests for new numel() implementation

* Fix numel() test, previously failing in Python 2.7.

* Remove ones_like_lookup() for sparse matrices

* remove todense_lookup

* Call correct sum() function in moment_chunk()

* Remove xfail from mean() sparse test

* Add sparse std() test back

* Test sparse moment()

* Test sparse var()

* Build also against sparse upstream

* Fix condition for CI upstream sparse installation

* Attempt to fix upstream sparse installation once more

* Enable __array_function__ in Python 3.7 build

* Remove leftover export from run_tests.sh

* Workaround for mkl.fft failures in test_array_function.py

* Minor reductions readability/code consistency changes

* Increase coverage of numel()

* Remove unnecessary for loop in numel() test

* Reenable development build, uses upstream libraries

* Revert "Reenable development build, uses upstream libraries"

This reverts commit 1705689db.

17319 of 18932 relevant lines covered (91.48%)

0.91 hits per line

Source Files on job 11233.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 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 10102
  • Travis Job 11233.7
  • c9285c58 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 (#11231.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 (#11235.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