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

exclude zattrs when empty #16

Merged
merged 3 commits into from
Mar 17, 2024
Merged

exclude zattrs when empty #16

merged 3 commits into from
Mar 17, 2024

Conversation

magland
Copy link
Collaborator

@magland magland commented Mar 16, 2024

Addresses #15

With this, .zattrs is now excluded in the reference file system. However...

I felt it wasn't worth the overhead of determining whether attrs are empty in the __contains__ function, especially since we are adding additional special attributes here and there. So, in the LindiH5Store, the file is still always present. But in the exported reference file system (where this matters more), it is excluded - because that's a much easier check. See notes in source code.

This PR also makes some fixes to the __contains__ function and adds some asserts to the tests.

@magland magland requested a review from rly March 16, 2024 12:31
@magland magland merged commit 77f4fc6 into main Mar 17, 2024
2 of 4 checks passed
@magland magland deleted the exclude-zattrs-when-empty branch March 17, 2024 01: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