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

mrocklin / dask / 949
94%
master: 94%

Build:
Build:
LAST BUILD BRANCH: astype-passthrough
DEFAULT BRANCH: master
Ran 09 Sep 2015 08:50PM UTC
Jobs 1
Files 56
Run time 3s
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
949

push

travis-ci

Matthew Rocklin
Write dask array to a stack of .npy files

Fixes #684

This partitions the dask.array along one axis and stores each block along
that axis as a single .npy file in the specified directory

Example
-------

>>> x = da.ones((5, 10, 10), chunks=(2, 4, 4))  # doctest: +SKIP
>>> da.to_npy_stack('data/', x, axis=0)  # doctest: +SKIP

$ tree data/
data/
|-- 0.npy
|-- 1.npy
|-- 2.npy
|-- info

The ``.npy`` files store numpy arrays for ``x[0:2], x[2:4], and x[4:5]``
respectively, as is specified by the chunk size along the zeroth axis.  The
info file stores the dtype, chunks, and axis information of the array.

You can load these stacks with the ``da.from_npy_stack`` function.

>>> y = da.from_npy_stack('data/')  # doctest: +SKIP

25 of 25 new or added lines in 1 file covered. (100.0%)

7125 of 7574 relevant lines covered (94.07%)

0.94 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
dask/array/core.py
Jobs
ID Job ID Ran Files Coverage
2 949.2 09 Sep 2015 08:50PM UTC 0
94.07
Travis Job 949.2
Source Files on build 949
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #949
  • eec272c1 on github
  • Next Build on to-npy-stack (#950)
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