Skip to content

Fix Context.fromfunction#356

Merged
kwmsmith merged 9 commits into
masterfrom
bugfix/fix-fromfunction
May 1, 2014
Merged

Fix Context.fromfunction#356
kwmsmith merged 9 commits into
masterfrom
bugfix/fix-fromfunction

Conversation

@bgrant
Copy link
Copy Markdown
Contributor

@bgrant bgrant commented May 1, 2014

On top of #354.

  1. Context.fromfunction was broken client-side; fix it.
  2. Add a test and a docstring. Fixes Document and test fromfunction #156.
  3. Have fromfunction use the new version of from_localarrays under the hood for communication efficiency. Partially addresses Refactor DistArray.from_localarrays() #337.

fromfunction is an odd function, and the numpy version can return arbitrarily-shaped arrays. This one is more restricted, but I think it supports the common use case for fromfunction.

@kwmsmith kwmsmith added the bug label May 1, 2014
@kwmsmith kwmsmith added this to the 0.3 milestone May 1, 2014
kwmsmith added a commit that referenced this pull request May 1, 2014
@kwmsmith kwmsmith merged commit 3debd61 into master May 1, 2014
@kwmsmith kwmsmith deleted the bugfix/fix-fromfunction branch May 6, 2014 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document and test fromfunction

2 participants