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

JuliaIO / HDF5.jl / 1071
81%

Build:
DEFAULT BRANCH: master
Ran 31 Oct 2017 02:23PM UTC
Jobs 2
Files 3
Run time 55min
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
1071

push

travis-ci

musm
Fix heuristic chunking of zero-dimensional arrays (#445)

* Fix heuristic chunking of zero-dimensional arrays

Previously, when calling `heuristic_chunk` with a zero-dimensional array
`x` (i.e. a scalar wrapped by an array, for example `x = ones()`),
heuristic chunking failed with an error, since `shape = size(x)` was an
empty Tuple, and thus `[shape...]` was an `Array{Any,1}` instead of the
expected `Array{Int,1}`.

This is fixed here by creating a variant of `heuristic_chunk` that gets
called when `size(x)` is an empty tuple, i.e., when `x` is a
zero-dimensional array.

In practice, this disables chunking of zero-dimensional arrays (chunking
scalars doesn't make much sense anyway!).

* Add test for zero-dimensional arrays

The test writes and reads back a compressed zero-dimensional array (i.e.
a scalar wrapped into an array). Since chunking is not specified in the
tests, writing the compressed array uses `heuristic_chunk`.

Note that the zero-dimensional array is written to HDF5 as a scalar
dataset, since HDF5 doesn't have the notion of zero-dimensional array
(unlike Julia). Therefore, when reading back the data, HDF5 actually
returns a scalar and not a zero-dimensional array.

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

815 of 1067 relevant lines covered (76.38%)

105.74 hits per line

Jobs
ID Job ID Ran Files Coverage
3 1071.3 31 Oct 2017 02:23PM UTC 0
76.1
Travis Job 1071.3
6 1071.6 31 Oct 2017 03:19PM UTC 0
76.38
Travis Job 1071.6
Source Files on build 1071
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1071
  • 0d19462f on github
  • Prev Build on master (#1066)
  • Next Build on master (#1072)
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