You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I want to avoid changing the current behaviour. I haven't thought
this through thoroughly, but I was wondering about setting the default to
chunks=True, which means auto-chunking (which is the current behaviour).
Then if the user explicitly states chunks=None that means chunk shape
equals array shape.
--
Alistair Miles
Head of Epidemiological Informatics
Centre for Genomics and Global Health <http://cggh.org>
The Wellcome Trust Centre for Human Genetics
Roosevelt Drive
Oxford
OX3 7BN
United Kingdom
Email: alimanfoo@googlemail.com
Web: http://purl.org/net/aliman
Twitter: https://twitter.com/alimanfoo
Tel: +44 (0)1865 287721
To be fair, I do think this proposal results in a better default.
Just thinking of the right way to deprecate this. Normally adding a warning about chunks=None would be ok, but it is the default too. So that could get really noisy. Maybe using a decorator that checks for chunks being explicitly set or doing some introspection of the arguments passed in.
FWIW I think it would be OK to just change the default to chunks=True and
include some documentation about the change in the docstrings and release
notes. I don't think anyone will have been explicitly passing chunks=None
before now. The behaviour when no chunks argument is specified by the user
(autochunking) will be unchanged.
--
Alistair Miles
Head of Epidemiological Informatics
Centre for Genomics and Global Health <http://cggh.org>
The Wellcome Trust Centre for Human Genetics
Roosevelt Drive
Oxford
OX3 7BN
United Kingdom
Email: alimanfoo@googlemail.com
Web: http://purl.org/net/aliman
Twitter: https://twitter.com/alimanfoo
Tel: +44 (0)1865 287721
Activity
jakirkham commentedon Jan 24, 2017
Would this make it a change in current behavior as it is already
None?Edit: Would it make sense to have the current behavior go through
Trueinstead. ( https://github.com/alimanfoo/zarr/issues/107 )alimanfoo commentedon Jan 24, 2017
jakirkham commentedon Jan 24, 2017
To be fair, I do think this proposal results in a better default.
Just thinking of the right way to deprecate this. Normally adding a warning about
chunks=Nonewould be ok, but it is the default too. So that could get really noisy. Maybe using a decorator that checks forchunksbeing explicitly set or doing some introspection of the arguments passed in.alimanfoo commentedon Jan 25, 2017