Skip to content

Conversation

@cowlicks
Copy link
Contributor

This adds checks to all the Distribution creation paths to make sure that no empty localarrays are created. This should fail several tests until PR #444 is merged. This closes issue #445.

This also adds a Distribution.localsizes instance method, which returns the sizes of the localarrays.

@cowlicks
Copy link
Contributor Author

Note that this has to duplicate the check for empty localarrays three times. Two for each Distribution classmethod, and one for Distribution's __init__. It would be nice if the Distribution classmethods were refactored to call Distribution's __init__ so we could avoid this duplication.

@kwmsmith kwmsmith added this to the 0.4 milestone Jun 19, 2014
@kwmsmith kwmsmith added the bug label Jun 22, 2014
@kwmsmith
Copy link
Contributor

@cowlicks please rebase against master.

@cowlicks
Copy link
Contributor Author

It looks like we have some conflicting implementations here. This PR checks that we don't create any empty LocalArrays, but it looks like that is intended behavior in some of the slicing PR's. See this

@kwmsmith kwmsmith modified the milestones: 0.5, 0.4 Jul 7, 2014
@bgrant bgrant modified the milestones: 0.5, 0.6 Aug 12, 2014
@bgrant bgrant modified the milestones: 0.7, 0.6 Oct 16, 2015
@bgrant
Copy link
Contributor

bgrant commented Oct 16, 2015

Postponing to 0.7.

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.

3 participants