arviz-devs / InferenceObjects.jl

Storage for results of Bayesian inference
https://julia.arviz.org/InferenceObjects
MIT License
14 stars 1 forks source link

Add from_dict #35

Closed sethaxen closed 1 year ago

sethaxen commented 1 year ago

Implements a pure Julia from_dict to replace ArviZ's Python version. Currently it just dispatches to from_namedtuple after suitably converting it, but this can change later if InferenceData allows Dict storage, see #16.

codecov-commenter commented 1 year ago

Codecov Report

Merging #35 (102052e) into main (c060241) will decrease coverage by 0.18%. The diff coverage is 91.66%.

@@            Coverage Diff             @@
##             main      #35      +/-   ##
==========================================
- Coverage   96.12%   95.94%   -0.19%     
==========================================
  Files           8        9       +1     
  Lines         284      296      +12     
==========================================
+ Hits          273      284      +11     
- Misses         11       12       +1     
Impacted Files Coverage Δ
src/from_namedtuple.jl 95.12% <ø> (ø)
src/from_dict.jl 87.50% <87.50%> (ø)
src/utils.jl 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.