Skip to content

Array creation takes a distribution object#359

Closed
bgrant wants to merge 11 commits into
masterfrom
feature/array-creation-takes-distribution
Closed

Array creation takes a distribution object#359
bgrant wants to merge 11 commits into
masterfrom
feature/array-creation-takes-distribution

Conversation

@bgrant
Copy link
Copy Markdown
Contributor

@bgrant bgrant commented May 2, 2014

Refactor the client-side array-creation methods to take a Distribution object instead of the shape, dist, grid_shape arguments directly. A user can create a Distribution object many ways, including with those arguments. This allows all array-creation routines to create all of our supported distribution types.

It is a little verbose at the moment, but we may add a more convenient "make up a distribution for me" API in the future.

@bgrant bgrant added this to the 0.3 milestone May 2, 2014
@cowlicks
Copy link
Copy Markdown
Contributor

cowlicks commented May 5, 2014

This makes creating distarrays painfully verbose. Couldn't we keep the more convenient way by doing a type check on what is passed to the array creation routines?

@bgrant bgrant closed this May 5, 2014
@kwmsmith kwmsmith deleted the feature/array-creation-takes-distribution branch May 6, 2014 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants