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

feat(indexing/ndarray)!: Remove .indices from Slice interface #121

Merged
merged 3 commits into from
Sep 30, 2023

Conversation

manzt
Copy link
Owner

@manzt manzt commented Sep 30, 2023

Requires less of caller interface. We can forward slices from libraries like ZarrJS or those which aren't constructed with the slice helper function.

@@ -109,7 +109,7 @@ class SliceDimIndexer {

constructor({ dim_sel, dim_len, dim_chunk_len }: SliceDimIndexerProps) {
// normalize
const [start, stop, step] = dim_sel.indices(dim_len);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only place this function is needed internally.

@manzt manzt merged commit 42eaa70 into main Sep 30, 2023
2 checks passed
@github-actions github-actions bot mentioned this pull request Sep 30, 2023
@manzt manzt deleted the manzt/slice branch January 14, 2024 16:30
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.

None yet

1 participant