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

implement id for group/dataset as a string #39

Merged
merged 1 commit into from
Apr 5, 2024
Merged

implement id for group/dataset as a string #39

merged 1 commit into from
Apr 5, 2024

Conversation

magland
Copy link
Collaborator

@magland magland commented Apr 4, 2024

fixes #36

In h5py, the id property of a group/dataset is an object that exposes low-level operations specific to the HDF5 library. LINDI aims to override the high-level methods such that the low-level operations on id are not needed. However, sometimes packages (e.g., pynwb) use the id as a unique identifier for purposes of caching. Therefore, we make the id to be a string that is unique for each object. If any of the low-level operations are attempted on this id string, then an exception will be raised, which will usually indicate that one of the high-level methods should be overridden.

With this PR, the id is a unique identifier that is specific to (a) the file object and (b) the name/path of the object within the file.

@magland magland changed the base branch from main to write April 4, 2024 15:57
@magland magland requested a review from rly April 4, 2024 15:57
Base automatically changed from write to main April 4, 2024 18:53
@rly
Copy link
Contributor

rly commented Apr 5, 2024

Thanks for the quick fix!

@magland magland merged commit d5943e1 into main Apr 5, 2024
6 checks passed
@magland magland deleted the id-string branch April 5, 2024 17:37
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.

Resolve dataset of references
2 participants