Skip to content

Conversation

@lukeyeager
Copy link
Contributor

When setting the mean, assert that it is either one pixel or an array with shape equal to the input data size.

Helps others who run into #1928 by giving them a meaningful error message.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lukeyeager ha this was actually my check for just this but I accidentally commented it out. Your checks cover more cases though so when I merge I'll combine them so please switch to exceptions for merge.

@shelhamer shelhamer added the ES label Feb 22, 2015
@shelhamer
Copy link
Member

Could you update this PR to raise ValueError instead of assert then I can just merge? Thanks.

@lukeyeager
Copy link
Contributor Author

Sure thing.

When setting the mean, assert that it is either one pixel or an array with
shape equal to the input data size.
@lukeyeager
Copy link
Contributor Author

Closing due to inactivity. I'll rebase and move this to a different branch for the sake of sanity in my repo, then repost.

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.

2 participants