rafaqz / DimensionalData.jl

Named dimensions and indexing for julia arrays and other data
https://rafaqz.github.io/DimensionalData.jl/stable/
MIT License
281 stars 41 forks source link

Allow broadcast over different sized dims when one has length of one #404

Closed rafaqz closed 2 years ago

rafaqz commented 2 years ago

Closes #401

@sethaxen this also makes a few name changes to the keyword arguments of comparedims and adds them to the docs. Probably they should all be tested too...

codecov-commenter commented 2 years ago

Codecov Report

Merging #404 (bf2f7fb) into main (65da988) will decrease coverage by 0.01%. The diff coverage is 80.00%.

@@            Coverage Diff             @@
##             main     #404      +/-   ##
==========================================
- Coverage   90.26%   90.25%   -0.02%     
==========================================
  Files          35       35              
  Lines        2353     2359       +6     
==========================================
+ Hits         2124     2129       +5     
- Misses        229      230       +1     
Impacted Files Coverage Δ
src/Dimensions/primitives.jl 95.77% <71.42%> (+0.51%) :arrow_up:
src/array/broadcast.jl 74.19% <100.00%> (ø)
src/LookupArrays/lookup_traits.jl 93.54% <0.00%> (-1.19%) :arrow_down:
src/LookupArrays/show.jl 82.53% <0.00%> (-1.07%) :arrow_down:
src/array/array.jl 93.75% <0.00%> (-0.90%) :arrow_down:
src/name.jl 91.66% <0.00%> (-0.65%) :arrow_down:
src/LookupArrays/selector.jl 89.55% <0.00%> (-0.27%) :arrow_down:
src/stack/show.jl 100.00% <0.00%> (ø)
src/DimensionalData.jl 100.00% <0.00%> (ø)
src/LookupArrays/metadata.jl 80.43% <0.00%> (ø)
... and 5 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more