Repository navigation
Improve reshape test when limiting max chunk size - #8494
GenevieveBuckley wants to merge 4 commits into
Conversation
|
FYI @jrbourbeau, since these were originally your suggestions 😄 |
jsignell
left a comment
There was a problem hiding this comment.
Thanks for opening this PR! It looks like a nice improvement.
There is one more piece that @jrbourbeau and I talked about last week but I can't find where we wrote it up. It seems like in other places (namely slicing.py) split-large-chunks raises a warning if it is None. In your first PR, when split-large-chunks is None it allows chunk splitting.
Lines 236 to 237 in 1f30a14
Instead it should probably throw a warning, or be treated as Falsey like:
if limit is None and config.get("array.slicing.split-large-chunks"):
limit = parse_bytes(config.get("array.chunk-size"))|
I missed that conversation. Lines 236-237 in if limit is None and config.get("array.slicing.split-large-chunks"):
limit = parse_bytes(config.get("array.chunk-size")) |
|
I just merged main to see if we can get tests running a bit better here. |
|
I'm going to close this since we merged #8511 instead |
Follow up work from PR 8124, to address James' suggestions made here.
This PR:
limitkeyword argument to the reshape method (in addition to the reshape function)Checklist:
pre-commit run --all-files