We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Base.get
1 parent b18a8f2 commit 420b468Copy full SHA for 420b468
src/variable.jl
@@ -23,6 +23,9 @@ for f in (:getindex,)
23
@eval Base.$f(var::AbstractDataVariable, I::Vararg{Int}) = $f(parent(var), I...)
24
end
25
26
+Base.get(var::AbstractDataVariable, s, d=nothing) = get(meta(var), s, d)
27
+Base.get(f::Function, var::AbstractDataVariable, s) = get(f, meta(var), s)
28
+
29
tmin(v) = minimum(times(v))
30
tmax(v) = maximum(times(v))
31
@@ -53,9 +56,6 @@ function Base.show(io::IO, m::MIME"text/plain", var::T) where {T<:AbstractDataVa
53
56
println(io, " Size: ", size(var))
54
57
println(io, " Memory Usage: ", Base.format_bytes(Base.summarysize(var)))
55
58
if (m = meta(var)) !== nothing
- println(io, " Metadata:")
- for (key, value) in sort(collect(m), by=x -> x[1])
- println(io, " ", key, ": ", value)
59
- end
+ show_field(io, "Metadata", m)
60
61
0 commit comments