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

dask / dask / 11233
53%

Build:
DEFAULT BRANCH: master
Ran 12 Apr 2019 09:06PM UTC
Jobs 2
Files 108
Run time 18min
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
11233

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%)

1.83 hits per line

Jobs
ID Job ID Ran Files Coverage
3 11233.3 (PYTHON=3.6 NUMPY=1.14.1 PANDAS=0.22.0 TEST='true' LINT='true' COVERAGE='true' PARALLEL='false' XTRATESTARGS= TEST_IMPORTS='true') 12 Apr 2019 09:06PM UTC 0
91.48
Travis Job 11233.3
7 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') 12 Apr 2019 09:24PM UTC 0
91.48
Travis Job 11233.7
Source Files on build 11233
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #11233
  • c9285c58 on github
  • Prev Build on master (#11231)
  • Next Build on master (#11235)
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