arviz-devs / arviz

Exploratory analysis of Bayesian models with Python
https://python.arviz.org
Apache License 2.0
1.6k stars 397 forks source link

add datatree converters #2253

Closed OriolAbril closed 1 year ago

OriolAbril commented 1 year ago

Description

Adds converters to go back and forth between InferenceData and DataTree.

Checklist


:books: Documentation preview :books:: https://arviz--2253.org.readthedocs.build/en/2253/

codecov[bot] commented 1 year ago

Codecov Report

Merging #2253 (44b1976) into main (f2d1f11) will decrease coverage by 0.01%. The diff coverage is 81.25%.

@@            Coverage Diff             @@
##             main    #2253      +/-   ##
==========================================
- Coverage   87.90%   87.89%   -0.01%     
==========================================
  Files         120      121       +1     
  Lines       12433    12448      +15     
==========================================
+ Hits        10929    10941      +12     
- Misses       1504     1507       +3     
Impacted Files Coverage Δ
arviz/data/datasets.py 98.48% <ø> (ø)
arviz/data/inference_data.py 82.26% <77.77%> (-0.06%) :arrow_down:
arviz/data/io_datatree.py 80.00% <80.00%> (ø)
arviz/data/__init__.py 100.00% <100.00%> (ø)