JuliaIO / JLD2.jl

HDF5-compatible file format in pure Julia
Other
534 stars 82 forks source link

Draft: experimental plain reconstruction #522

Open JonasIsensee opened 6 months ago

JonasIsensee commented 6 months ago

Tries to turn committed types into NamedTuple and (non-committed) parametric type signatures into Any.

julia> load("struct_reconstruction.jld2"; plain=true)
Dict{String, Any} with 4 entries:
  "dms" => @NamedTuple{kvvec}((Any[@NamedTuple{first::String, second}(("a", (a = 1,)))],))
  "tms" => @NamedTuple{1::Int64, 2}((1, (a = 1,)))
  "s"   => (a = 1,)
  "ds"  => @NamedTuple{kvvec}((Any[(first = "a", second = (a = 1,))],))
codecov[bot] commented 6 months ago

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (28b2185) 86.46% compared to head (7d11c46) 86.38%.

Files Patch % Lines
src/data/reconstructing_datatypes.jl 40.00% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #522 +/- ## ========================================== - Coverage 86.46% 86.38% -0.08% ========================================== Files 31 31 Lines 4247 4253 +6 ========================================== + Hits 3672 3674 +2 - Misses 575 579 +4 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.