Skip to content

Commit

Permalink
fix writing scalars
Browse files Browse the repository at this point in the history
  • Loading branch information
ilia-kats committed Mar 4, 2024
1 parent e59d013 commit aee5aab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hdf5_io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

1 comment on commit aee5aab

@ilia-kats
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.