From aee5aab571546a1e7b58f03022eff1e37b1ec27a Mon Sep 17 00:00:00 2001 From: Ilia Kats Date: Mon, 4 Mar 2024 15:35:04 +0100 Subject: [PATCH] fix writing scalars --- src/hdf5_io.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hdf5_io.jl b/src/hdf5_io.jl index f198fb8..e2c0087 100644 --- a/src/hdf5_io.jl +++ b/src/hdf5_io.jl @@ -338,7 +338,7 @@ function write_impl_array( dims::Union{Tuple{Vararg{<:Integer}}, Tuple{Tuple{Vararg{<:Integer, N}}, Tuple{Vararg{<:Integer, N}}}}, compress::UInt8, ) where N - if compress > 0x0 + if compress > 0x0 && ndims(data) > 0 chunksize = HDF5.heuristic_chunk(data) if length(chunksize) == 0 chunksize = Tuple(100 for _ in 1:ndims(data))