Skip to content

Conversation

@normanrz
Copy link
Member

@normanrz normanrz commented Dec 25, 2024

Builds on #2463

  • Adds a shards property to Array that returns the shard shape and None if sharding isn't used
  • chunks now returns the inner chunk shape, if sharding is used
  • Moves the chunks and shards properties into the ArrayMetadata classes to handle v2 and v3 cases

I was wondering if shards should equal chunks if sharding isn't used. Let me know what you think.

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)

d-v-b added 30 commits November 4, 2024 22:51
@normanrz normanrz requested a review from d-v-b December 25, 2024 20:18
@normanrz normanrz self-assigned this Dec 25, 2024
@d-v-b
Copy link
Contributor

d-v-b commented Dec 26, 2024

I was wondering if shards should equal chunks if sharding isn't used. Let me know what you think.

I think we should only report a tuple of ints for shards if and only if a sharding codec is being used -- otherwise it's not easy to tell the difference between an array that uses the sharding codec w/ shard shape=inner chunk shape, and an array that is not using the sharding codec. shards = None seems like a sane choice for the latter case.

@normanrz
Copy link
Member Author

Merged into #2463

@normanrz normanrz closed this Dec 27, 2024
@normanrz normanrz deleted the feat/chunks-shards branch December 27, 2024 12:09
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.

4 participants