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

jakirkham / zarr / 165 / 4
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 05 Dec 2018 02:53AM UTC
Files 29
Run time 1860min
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

04 Dec 2018 10:25PM UTC coverage: 99.4% (+0.6%) from 98.792%
165.4

push

travis-ci

web-flow
Bump Numcodecs requirement to 0.6.2 (#352)

* Bump Numcodecs requirement to 0.6.1

* Assert MsgPack round-trips bytes objects correctly

Previously MsgPack was turning bytes objects to unicode objects when
round-tripping them. However this has been fixed in the latest version
of Numcodecs. So correct this test now that MsgPack is working
correctly.

* properly guard against removal of object codec

* Ensure `chunk` in `_decode_chunk` is an `ndarray`

* Reshape `chunk` ourselves since it is an `ndarray`

As we already ensured the `chunk` is an `ndarray` viewing the original
data, there is no need for us to do that here as well. Plus the checks
performed by `ensure_contiguous_ndarray` are not needed for our use case
here. Particularly as we have already handled the unusual type cases
above. We also don't need to constrain the buffer size. As such the only
thing we really need is to flatten the array and make it contiguous,
which is what we handle here directly.

* Refactor `reshape` from `_decode_chunk`

As both the expected `object` case and the non-`object` case perform a
`reshape` to flatten the data, go ahead and refactor that out of both
cases and handle it generally. Simplifies the code a bit.

* Consolidate type checks in `_decode_chunk`

As refactoring of the `reshape` step has effectively dropped the
expected `object` type case, the checks for different types is a little
more complicated than needed. To fix this, basically invert and swap the
case ordering. This way we can handle all generally expected types first
and simply cast them. Then we can raise if an `object` type shows up and
is unexpected.

* Drop `ensure_bytes` definition from `zarr.storage`

As Numcodecs now includes a very versatile and effective `ensure_bytes`
function, there is no need to define our own in `zarr.storage` as well.
So go ahead and drop it.

* Take flattened array views to avoid some copies

Make use of Numcodecs' `ensu... (continued)

8288 of 8338 relevant lines covered (99.4%)

0.99 hits per line

Source Files on job 165.4
  • Tree
  • List 0
  • Changed 9
  • Source Changed 6
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 164
  • Travis Job 165.4
  • c4427a46 on github
  • Prev Job for on master (#164.1)
  • Next Job for on master (#166.1)
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

© 2025 Coveralls, Inc