xarray-contrib / xarray-schema

Schema validation for Xarray objects
https://xarray-schema.readthedocs.io/en/latest/index.html
MIT License
39 stars 8 forks source link

Refactor / add component schemas #7

Closed jhamman closed 2 years ago

jhamman commented 2 years ago

This PR reorganizes the xarray-schema package. A few new features are included (e.g. to_json) but it is mostly a refactor that includes:

codecov[bot] commented 2 years ago

Codecov Report

Merging #7 (91b2967) into main (2b4b4de) will increase coverage by 11.95%. The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             main        #7       +/-   ##
============================================
+ Coverage   88.04%   100.00%   +11.95%     
============================================
  Files           2         6        +4     
  Lines          92       258      +166     
============================================
+ Hits           81       258      +177     
+ Misses         11         0       -11     
Impacted Files Coverage Δ
xarray_schema/__init__.py 100.00% <100.00%> (ø)
xarray_schema/base.py 100.00% <100.00%> (ø)
xarray_schema/components.py 100.00% <100.00%> (ø)
xarray_schema/dataarray.py 100.00% <100.00%> (ø)
xarray_schema/dataset.py 100.00% <100.00%> (ø)
xarray_schema/types.py 100.00% <100.00%> (ø)

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 2b4b4de...91b2967. Read the comment docs.