Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Fix np.average for object arrays #8750

Merged
merged 1 commit into from
Mar 8, 2017
Merged

Conversation

warut-vijit
Copy link
Contributor

Moved test for Object arrays from test_basic to test_object_dtype

@eric-wieser
Copy link
Member

Moved from #8741...

@eric-wieser
Copy link
Member

Please try to keep to one pr in future

@@ -341,6 +341,12 @@ def test_upcasting(self):
w = np.array([[1,2],[3,4]], dtype=wt)
assert_equal(np.average(a, weights=w).dtype, np.dtype(rt))

def test_object_dtype(self):
a = np.array([decimal.Decimal(x) for x in range(10)])
+ w = np.array([decimal.Decimal(1) for _ in range(10)])
Copy link
Member

Choose a reason for hiding this comment

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

What is this plus doing here? Looks like you tried to copy a patch from the PR and paste it.

@warut-vijit warut-vijit force-pushed the master branch 2 times, most recently from dfccde3 to 04b98f4 Compare March 7, 2017 17:12
@eric-wieser
Copy link
Member

eric-wieser commented Mar 7, 2017

Can you edit the commit message to include "Fixes #8696" on the third line?

@eric-wieser
Copy link
Member

Nevermind, have done so myself. Thanks @warut-vijit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants