pyvista / pyvista-xarray

xarray DataArray accessors for PyVista
Apache License 2.0
98 stars 6 forks source link

Add PyVista dataset engine #27

Closed banesullivan closed 2 years ago

banesullivan commented 2 years ago

Resolves #12 and closes #4

VTK files can now be read directly with xarray's open_dataset function:

import xarray as xr
ds = xr.open_dataset('wavelet.vti', engine="pyvista")
codecov-commenter commented 2 years ago

Codecov Report

Merging #27 (caaaada) into main (51513d7) will decrease coverage by 1.91%. The diff coverage is 80.64%.

@@            Coverage Diff             @@
##             main      #27      +/-   ##
==========================================
- Coverage   92.12%   90.20%   -1.92%     
==========================================
  Files           7        8       +1     
  Lines         165      194      +29     
==========================================
+ Hits          152      175      +23     
- Misses         13       19       +6     
Impacted Files Coverage Δ
pvxarray/io.py 80.00% <80.00%> (ø)
pvxarray/accessor.py 95.83% <100.00%> (-0.09%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 51513d7...caaaada. Read the comment docs.