From 5765c62222e7d5b04f5164fa67d05a1097bb6a4b Mon Sep 17 00:00:00 2001 From: Jonas Krimmer <jonas.krimmer@kit.edu> Date: Thu, 27 Mar 2025 15:24:46 +0000 Subject: [PATCH] feat: optionally print all attributes of hdf5 file --- examples/from_dump.jl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/from_dump.jl b/examples/from_dump.jl index 27eff50..81b46c5 100644 --- a/examples/from_dump.jl +++ b/examples/from_dump.jl @@ -29,10 +29,13 @@ function plot_from_dump(fn; iter=1, mode=1, collimate=false) Plot(tr, lt) end -function attributes_from_dump(fn) - h5open(fn, "r") do fid +function attributes_from_dump(fn; disp=false) + meta = h5open(fn, "r") do fid OrderedDict(attrs(fid)) end + disp && show(IOContext(stdout, :limit => false), "text/plain", meta) + + return meta end function post_dump_sampling_check(fn; kwargs...) -- GitLab