xgcm / xhistogram

Fast, flexible, label-aware histograms for numpy and xarray
https://xhistogram.readthedocs.io
MIT License
90 stars 20 forks source link

fix dimension bug #8

Closed rabernat closed 5 years ago

rabernat commented 5 years ago

This fixes #5 by improving the way dimensions and coordinates are handled.

@qyxiao, I basically just copied your test verbatim. Thanks for providing an easily reproducible example.

codecov-io commented 5 years ago

Codecov Report

Merging #8 into master will increase coverage by 0.15%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #8      +/-   ##
==========================================
+ Coverage    93.5%   93.65%   +0.15%     
==========================================
  Files           3        3              
  Lines         200      205       +5     
  Branches       52       54       +2     
==========================================
+ Hits          187      192       +5     
  Misses          8        8              
  Partials        5        5
Impacted Files Coverage Δ
xhistogram/xarray.py 90.56% <100%> (+0.98%) :arrow_up:

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 a636393...263bd69. Read the comment docs.