Uh oh!
There was an error while loading. Please reload this page.
forward write_empty_chunks kwarg in group.require_dataset - #1051
Conversation
d-v-b
commented
Jun 22, 2022
looks like CI is failing for python 3.7 due to some type annotation stuff... do we need to support 3.7 still? |
joshmoore
commented
Jun 23, 2022
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@## main #1051 +/- ##
=======================================
Coverage 99.94% 99.94% =======================================
Files 34 34 Lines 13846 13865 +19 =======================================
+ Hits 13839 13858 +19
Misses 7 7
|
d-v-b
commented
Jun 27, 2022
mypy is almost happy. A few things that I would appreciate input on:
|
joshmoore
commented
Jul 4, 2022
My guess is that they should throw on
Extracting the entire contents of |
d-v-b
commented
Jul 5, 2022
@grlee77 can you shed some light on whether the |
That is how |
joshmoore
commented
Jul 11, 2022
jhamman
commented
Oct 11, 2024
I'm going to close this as stale. Folks should feel free to reopen if there is interest in continuing this work. |
Currently when using a
Groupto get an existingArrayviaGroup.require_dataset, there's no way to control the "write_empty_chunksness" of the array (sinceArray.write_empty_chunksis not part of the array metadata). This means that you cannot callgroup.require_dataset('foo', shape=10, dtype='i4', write_empty_chunks=False)and get an array that has the desired.write_empty_chunksproperty (instead thewrite_empty_chunkskwarg is ignored).A few other array properties are similar (
synchronizer,cache_metadata, andcache_attrs), and in main these keyword arguments are extracted from the **kwargs argument toGroup.require_datasetbefore being passed to theArrayconstructor. This PR expands this behavior to includewrite_empty_chunks, thereby enabling the control of thewrite_empty_chunksproperty of the arrays returned byGroup.require_dataset.I also added a lot of type annotations.
TODO: