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] RowInstance: Fix sparse check #2362

Merged
merged 3 commits into from
Jun 1, 2017
Merged

Conversation

lanzagar
Copy link
Contributor

@lanzagar lanzagar commented May 31, 2017

Issue

The condition if self.sparse_x works when it is false (sparse_x == None). But crashed when it was actually a sparse array since "The truth value of an array ... is ambiguous"

Description of changes

Test with is not None.

Includes
  • Code changes
  • Tests
  • Documentation

@codecov-io
Copy link

codecov-io commented May 31, 2017

Codecov Report

Merging #2362 into master will decrease coverage by <.01%.
The diff coverage is 88.88%.

@@            Coverage Diff             @@
##           master    #2362      +/-   ##
==========================================
- Coverage   73.35%   73.35%   -0.01%     
==========================================
  Files         317      317              
  Lines       55586    55586              
==========================================
- Hits        40775    40773       -2     
- Misses      14811    14813       +2

@lanzagar lanzagar changed the title RowInstance: Fix sparse check [FIX] RowInstance: Fix sparse check Jun 1, 2017
@nikicc nikicc merged commit c8cd170 into biolab:master Jun 1, 2017
@lanzagar lanzagar deleted the sparserow branch March 14, 2022 14:41
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.

3 participants