Skip to content

Refactor Distribution creation routines.#332

Merged
kwmsmith merged 10 commits into
enthought:masterfrom
cowlicks:unify-distribution
Apr 22, 2014
Merged

Refactor Distribution creation routines.#332
kwmsmith merged 10 commits into
enthought:masterfrom
cowlicks:unify-distribution

Conversation

@cowlicks
Copy link
Copy Markdown
Contributor

As suggested in person.

  • Distribution.__init__ takes a global dim_data.
  • The old Distribution.__init__ is now the Distribution.from_shape classmethod.

This is on top of PR #322

cowlicks added 10 commits April 21, 2014 15:47
There is now a single function for getting a `Map` from a `dist_type`. This
pattern was duplicated a lot and is now consolidated in `choose_map`.

Renamed `dist` -> `dist_type` in some places for consitency.

Renamed `map_factor` -> `map_from_sizes` to be consisten with
`map_from_dim_datas` and `map_from_global_dim_dict`.
Distribution.__init__ takes a global dim_data

The old Distribution.__init__ is now the Distribution.from_shape
classmethod.
@kwmsmith kwmsmith added this to the 0.3 milestone Apr 21, 2014
kwmsmith added a commit that referenced this pull request Apr 22, 2014
Refactor Distribution creation routines.
@kwmsmith kwmsmith merged commit 31141a6 into enthought:master Apr 22, 2014
@cowlicks cowlicks deleted the unify-distribution branch April 22, 2014 19:35
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