Skip to content

Commit

Permalink
Prints attributes only if they exist
Browse files Browse the repository at this point in the history
  • Loading branch information
beta-effect committed Sep 2, 2019
1 parent 83027cd commit c82d219
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/juxta.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ function Base.show(io::IO, ja::JuxtArray)
for (k,v) in ja.coords
println(" $k: $(summary(v))")
end
println("Attributes : $(ja.attribs)")
if !(isempty(ja.attribs))
println("Attributes : $(ja.attribs)")
end
end

# function Base.setproperty!(ja::JuxtArray, ::Field{:coords}, d::Dict{String, Vector{Number}})
Expand Down

0 comments on commit c82d219

Please sign in to comment.