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'm took a brief look through this, and am wondering if there's a reason why we don't make known dtype strict here, as we did in dask.dataframe. The only places I can see where unknown dtype may appear is in user provided functions (e.g. map_blocks). dtype inference similar to what we did for dask.dataframe could also work here. This seems easier to me than trying to find all the places where we accidentally trigger computation.
Yes, I like requiring explicit dtypes. Trigger computation with .dtype can be problematic if it's expensive -- users have encountered this when using when using dask.array in xarray.
Activity
jcrist commentedon Oct 28, 2016
I'm took a brief look through this, and am wondering if there's a reason why we don't make known dtype strict here, as we did in
dask.dataframe. The only places I can see where unknown dtype may appear is in user provided functions (e.g.map_blocks).dtypeinference similar to what we did fordask.dataframecould also work here. This seems easier to me than trying to find all the places where we accidentally trigger computation.mrocklin commentedon Oct 28, 2016
I would be open to trying the function. I would also be open to requiring explicit dtypes.
FWIW I think that this is fairly low priority
shoyer commentedon Oct 28, 2016
Yes, I like requiring explicit dtypes. Trigger computation with
.dtypecan be problematic if it's expensive -- users have encountered this when using when using dask.array in xarray.mrocklin commentedon Oct 28, 2016
@shoyer you'd prefer that dask.array err early?
shoyer commentedon Oct 28, 2016
I think so. It's not hard to require a dtype in map_blocks.
On Fri, Oct 28, 2016 at 2:27 PM, Matthew Rocklin [email protected]
wrote: