Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a cyclic lookup #565

Merged
merged 10 commits into from
Nov 5, 2023
Merged

add a cyclic lookup #565

merged 10 commits into from
Nov 5, 2023

Conversation

rafaqz
Copy link
Owner

@rafaqz rafaqz commented Nov 4, 2023

This PR adds a Cyclic lookup type that modifies selectors to cycle the lookup below and above its range.

This works for At, Near and Contains

I'm not yet sure how to support ... It probably needs to return a Vector{Int} but that would need special handling to have the correct Ordered unrolled cyclic lookup afterwards rather than just repeats of the cycle.

@codecov-commenter
Copy link

codecov-commenter commented Nov 4, 2023

Codecov Report

Merging #565 (6764c16) into main (b20aeb0) will increase coverage by 0.17%.
Report is 1 commits behind head on main.
The diff coverage is 96.42%.

@@            Coverage Diff             @@
##             main     #565      +/-   ##
==========================================
+ Coverage   87.94%   88.11%   +0.17%     
==========================================
  Files          40       40              
  Lines        3334     3383      +49     
==========================================
+ Hits         2932     2981      +49     
  Misses        402      402              
Files Coverage Δ
src/LookupArrays/LookupArrays.jl 100.00% <ø> (ø)
src/LookupArrays/lookup_traits.jl 97.72% <ø> (ø)
src/LookupArrays/selector.jl 87.09% <100.00%> (+0.27%) ⬆️
src/LookupArrays/show.jl 84.72% <100.00%> (ø)
src/LookupArrays/lookup_arrays.jl 85.86% <95.65%> (+2.19%) ⬆️

... and 2 files with indirect coverage changes

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

@rafaqz rafaqz marked this pull request as ready for review November 5, 2023 14:17
@rafaqz rafaqz merged commit ef99985 into main Nov 5, 2023
11 checks passed
@rafaqz rafaqz deleted the cyclic branch November 5, 2023 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants