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

dask / dask / 6066
53%

Build:
DEFAULT BRANCH: master
Ran 29 Apr 2017 12:46PM UTC
Jobs 1
Files 89
Run time 5s
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
6066

cron

travis-ci

mrocklin
Add indices (#2268)

* Add an indices function

Behaves like NumPy's equivalently named function except with Dask Arrays
instead.

* Include some tests for the new indices function

* Skip rechunking after calling repeat

It appears that calling `repeat` here results in a chunk size that is
equal to the number of repetitions. As such these repeated dimensions
will be rechunked to the right chunk size automatically. Namely
rechunking will be done according to the chunk size of all of the
`arange` calls. However when it comes to `stack` rechunking is still
required to return the intended chunk size.

* Simply import itertools

Use `chain` from the module instead of importing the function directly.

* Skip chunking of 0th dimension in indices

The `indices` function was chunking the 0th dimension based on the user
supplied `chunks` argument. Following some discussion it was decided
that chunking along this dimension should simply be skipped. After all
the user can easily do this themselves if they want. Plus this
simplifies a bit of code in the process. So now the chunks are only used
for the `arange` function calls. Thus it determines the 1st dimension
onwards. The 0th dimension keeps chunks of length 1.

* Document the indices function

12622 of 13401 relevant lines covered (94.19%)

0.94 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6066.1 (PYTHON=2.7 NUMPY=1.10.4 PANDAS=0.19.0 COVERAGE='true' PARALLEL='false' TEST_IMPORTS='false' XTRATESTARGS=) 29 Apr 2017 12:46PM UTC 0
94.19
Travis Job 6066.1
Source Files on build 6066
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6066
  • ee3b1ed4 on github
  • Prev Build on master (#6065)
  • Next Build on master (#6067)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc