Skip to content

Rename BlockedSlice from #459 to NoncontiguousBlockSlice #479

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

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

mtfishman
Copy link
Collaborator

@mtfishman mtfishman commented Jul 10, 2025

This PR is split off from #462, it renames BlockedSlice introduced in #459 to NoncontiguousBlockSlice and also adds more functionality and tests so that it is as featureful as BlockSlice. The reason for the name change is that in #462, this type will be used in slicing operations such as V[[Block(1), Block(3)]] and V[Block(1)[[1, 3]]]. In my opinion, BlockedSlice doesn't make a lot of sense as a name for the latter case. The more general concept is that it is a slice object constructed when there is a non-contiguous blockwise slice of some form (either non-contiguous blocks or non-contiguous within a block).

I'm open to other name suggestions, NoncontiguousBlockSlice is the best I could come up with and there isn't really an analogous case for this in Base from what I've seen. Note the main reason why we can't just use BlockSlice for those cases is that BlockSlice is an AbstractUnitRange subtype and NoncontiguousBlockSlice covers cases where the slices aren't ranges, so maybe BlockSliceVector could work as a name to emphasize that point.

Copy link

codecov bot commented Jul 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.11%. Comparing base (a4a0b93) to head (a22a646).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #479      +/-   ##
==========================================
+ Coverage   93.81%   94.11%   +0.30%     
==========================================
  Files          19       19              
  Lines        1761     1768       +7     
==========================================
+ Hits         1652     1664      +12     
+ Misses        109      104       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dlfivefifty
Copy link
Member

Can you get the codecov up?

@mtfishman
Copy link
Collaborator Author

Can you get the codecov up?

Yes, will do.

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