Skip to content

Commit

Permalink
Add isempty for HDF5Dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
eschnett committed Jul 16, 2016
1 parent 843933e commit 4a38bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plain.jl
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ function length(x::HDF5Attributes)
objinfo(x.parent).num_attrs
end

@compat isempty(x::Union{HDF5Group,HDF5File}) = length(x) == 0
@compat isempty(x::Union{HDF5Dataset,HDF5Group,HDF5File}) = length(x) == 0
@compat function size(obj::Union{HDF5Dataset, HDF5Attribute})
dspace = dataspace(obj)
dims, maxdims = get_dims(dspace)
Expand Down

0 comments on commit 4a38bb0

Please sign in to comment.