xarray-contrib / cf-xarray

an accessor for xarray objects that interprets CF attributes
https://cf-xarray.readthedocs.io/
Apache License 2.0
157 stars 39 forks source link

Fix get_bounds_dim_name regression. #473

Closed dcherian closed 11 months ago

dcherian commented 11 months ago

Handle the case where lat and lat_bounds have same attributes.

Closes #442

codecov[bot] commented 11 months ago

Codecov Report

Merging #473 (42680ec) into main (c4d662e) will decrease coverage by 0.02%. The diff coverage is 83.33%.

@@            Coverage Diff             @@
##             main     #473      +/-   ##
==========================================
- Coverage   86.12%   86.11%   -0.02%     
==========================================
  Files          22       22              
  Lines        4209     4220      +11     
  Branches      207      210       +3     
==========================================
+ Hits         3625     3634       +9     
- Misses        527      528       +1     
- Partials       57       58       +1     
Flag Coverage Δ
mypy 37.97% <16.66%> (-0.06%) :arrow_down:
unittests 95.86% <100.00%> (+0.01%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
cf_xarray/tests/test_accessor.py 94.08% <100.00%> (+0.02%) :arrow_up:
cf_xarray/accessor.py 85.90% <71.42%> (-0.09%) :arrow_down: