pangeo-data / rechunker

Disk-to-disk chunk transformation for chunked arrays.
https://rechunker.readthedocs.io/
MIT License
163 stars 25 forks source link

Allow target_chunks dict syntax for xarray inputs #72

Closed rabernat closed 3 years ago

rabernat commented 3 years ago

Fixes the issue mentioned in #59. Xarray inputs should no longer require tuples and should be able to accept dicts as target_chunks.

codecov[bot] commented 3 years ago

Codecov Report

Merging #72 (bcbfe2e) into master (91420d5) will increase coverage by 0.01%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #72      +/-   ##
==========================================
+ Coverage   97.75%   97.76%   +0.01%     
==========================================
  Files          10       10              
  Lines         445      447       +2     
  Branches       88       89       +1     
==========================================
+ Hits          435      437       +2     
  Misses          5        5              
  Partials        5        5              
Impacted Files Coverage Δ
rechunker/api.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 91420d5...fd7e9f6. Read the comment docs.

rabernat commented 3 years ago

@eric-czech could I trouble you for a quick review?