Skip to content

Conversation

braingram
Copy link
Contributor

@braingram braingram commented Jan 26, 2023

NestedDirectoryStore which inherits from DirectoryStore only supports '/' as a dimension separator. However listdir uses the parent DirectoryStore.listdir which produces keys with an incorrect separator '.'

Fixes #1334

TODO:

  • Add unit tests and/or doctests in docstrings
  • Add docstrings and API docs for any new/modified user-facing classes and functions
  • New/modified features documented in docs/tutorial.rst
  • Changes documented in docs/release.rst
  • GitHub Actions have all passed
  • Test coverage is 100% (Codecov passes)

NestedDirectoryStore which inherits from DirectoryStore
only supports '/' as a dimension separator. However
listdir uses the parent DirectoryStore.listdir which
produces keys with an incorrect separator '.'

Fixes zarr-developers#1334
@github-actions github-actions bot added the needs release notes Automatically applied to PRs which haven't added release notes label Jan 26, 2023
@github-actions github-actions bot removed the needs release notes Automatically applied to PRs which haven't added release notes label Jan 26, 2023
@braingram braingram marked this pull request as ready for review January 26, 2023 20:12
Copy link
Contributor

@rabernat rabernat left a comment

Choose a reason for hiding this comment

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

Thanks so much for this fix! 🙏

@codecov
Copy link

codecov bot commented Jan 26, 2023

Codecov Report

Merging #1335 (5861200) into main (0bf0b3b) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main     #1335   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           35        35           
  Lines        14404     14406    +2     
=========================================
+ Hits         14404     14406    +2     
Impacted Files Coverage Δ
zarr/storage.py 100.00% <100.00%> (ø)
zarr/tests/test_storage.py 100.00% <100.00%> (ø)
zarr/util.py 100.00% <0.00%> (ø)
zarr/indexing.py 100.00% <0.00%> (ø)
zarr/tests/test_hierarchy.py 100.00% <0.00%> (ø)

@rabernat rabernat merged commit 6f11ae7 into zarr-developers:main Jan 26, 2023
@braingram braingram deleted the bug/NestedDirectory_listdir branch January 26, 2023 23:42
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.

NestedDirectoryStore.listdir returns invalid chunk keys
2 participants