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

[FIX] DistMatrix should return numpy datatypes #3865

Merged
merged 2 commits into from
Jun 7, 2019

Conversation

robertcv
Copy link
Collaborator

@robertcv robertcv commented Jun 7, 2019

Issue

Fixes #3658
Due to DistMatrix.max() returning Python int objects, numpy functions like np.testing.assert_array_equal fail unexpectedly.

Description of changes

When returning zero dimensional array use indexing to get a numpy datatype.

Includes
  • Code changes
  • Tests
  • Documentation

@codecov
Copy link

codecov bot commented Jun 7, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@346f807). Click here to learn what that means.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             master    #3865   +/-   ##
=========================================
  Coverage          ?   84.95%           
=========================================
  Files             ?      378           
  Lines             ?    70377           
  Branches          ?        0           
=========================================
  Hits              ?    59791           
  Misses            ?    10586           
  Partials          ?        0

@codecov
Copy link

codecov bot commented Jun 7, 2019

Codecov Report

Merging #3865 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master    #3865   +/-   ##
=======================================
  Coverage   84.96%   84.96%           
=======================================
  Files         378      378           
  Lines       70459    70459           
=======================================
  Hits        59868    59868           
  Misses      10591    10591

@robertcv robertcv force-pushed the fix/distmatrix_datatype branch 2 times, most recently from 7959e99 to 0d029ec Compare June 7, 2019 13:42
@lanzagar lanzagar merged commit 74ffccc into biolab:master Jun 7, 2019
@robertcv robertcv deleted the fix/distmatrix_datatype branch November 19, 2019 11:45
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.

DistMatrix: np.testing.assert_array_equal crashes on two different matrices
2 participants