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

[InMemoryDataset redesign] EntireChunksMapper #393

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

crusaderky
Copy link
Collaborator

@crusaderky crusaderky commented Oct 28, 2024

@crusaderky crusaderky self-assigned this Oct 28, 2024
@crusaderky crusaderky force-pushed the entire_chunks_mapper branch 2 times, most recently from aab636a to adb06fc Compare October 28, 2024 14:11
@crusaderky crusaderky force-pushed the entire_chunks_mapper branch from adb06fc to ec3bb2d Compare October 28, 2024 19:21
@crusaderky crusaderky force-pushed the entire_chunks_mapper branch 2 times, most recently from 36114d5 to 1c7c777 Compare November 19, 2024 09:53
Copy link
Collaborator

@peytondmurray peytondmurray left a comment

Choose a reason for hiding this comment

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

Looks good - two minor comments, otherwise good to go 🚢

actual selection may only target part of it.
"""

_chunks_indexer: slice | NDArray[np.intp]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does it matter that this is a class attribute rather than an instance attribute? In pure python mode this will share _chunks_indexer across multiple EntireChunksMapper instances, I think? Not sure about how cython handles these...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is a normal instance attribute. It's the output of the chunk_indexer method of the original indexer.

versioned_hdf5/tests/test_subchunk_map.py Outdated Show resolved Hide resolved
@crusaderky crusaderky merged commit 5da9d7a into deshaw:master Nov 20, 2024
8 checks passed
@crusaderky crusaderky deleted the entire_chunks_mapper branch November 20, 2024 15:27
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