Skip to content

Support 0 or 1 args in broadcast_shapes and broadcast_chunks - #3218

Merged
mrocklin merged 3 commits into
dask:masterfrom
jakirkham:support_0_or_1_args__broadcast_shapes__broadcast_chunks
Feb 27, 2018
Merged

mrocklin merged 3 commits into
dask:masterfrom
jakirkham:support_0_or_1_args__broadcast_shapes__broadcast_chunks

Conversation

@jakirkham

Copy link
Copy Markdown
Member

In broadcast_shapes both of these cases were supported, but didn't find test cases for either. In broadcast_chunks the single argument case was supported, but the no argument case failed. Also broadcast_chunks didn't appear to have tests for the single or no argument cases.

Hence this fixes broadcast_chunks to work in the no argument case. Also adds test cases for broadcast_shapes and broadcast_chunks when provided no arguments or a single argument.

Adds tests for `broadcast_shapes` and `broadcast_chunks` with one
argument. Didn't appear there was one before for either case. Hence this
adds one for this important base case.
Make sure that if `broadcast_chunks` gets no arguments, it return an
empty tuple.
Adds tests for `broadcast_shapes` and `broadcast_chunks` when no
argument is provided. Didn't appear there was one before for either
case. Also it failed for `broadcast_chunks` previously. Hence this adds
test for this base case.
@jakirkham jakirkham mentioned this pull request Feb 27, 2018
@mrocklin
mrocklin merged commit 8bd36eb into dask:master Feb 27, 2018
@mrocklin

Copy link
Copy Markdown
Member

Thanks @jakirkham !

@jakirkham
jakirkham deleted the support_0_or_1_args__broadcast_shapes__broadcast_chunks branch February 27, 2018 15:23
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.

3 participants