Skip to content

Commit

Permalink
Pylint: Add pylint ignores to more human-friendly formatted matrices
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlin-policar committed Sep 12, 2017
1 parent fd3b710 commit 08238b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Orange/statistics/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ def nanunique(*args, **kwargs):
result, counts = result
non_nan_mask = ~np.isnan(result)
return result[non_nan_mask], counts[non_nan_mask]

return result[~np.isnan(result)]


Expand Down
2 changes: 2 additions & 0 deletions Orange/tests/test_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ def test_sparse_explicit_zeros(self):

@dense_sparse
def test_nanunique_ignores_nans_in_values(self, array):
# pylint: disable=bad-whitespace
x = array([[-1., 1., 0., 2., 3., np.nan],
[ 0., 0., 0., 3., 5., np.nan],
[-1., 0., 0., 1., 7., 6.]])
Expand All @@ -407,6 +408,7 @@ def test_nanunique_ignores_nans_in_values(self, array):

@dense_sparse
def test_nanunique_ignores_nans_in_counts(self, array):
# pylint: disable=bad-whitespace
x = array([[-1., 1., 0., 2., 3., np.nan],
[ 0., 0., 0., 3., 5., np.nan],
[-1., 0., 0., 1., 7., 6.]])
Expand Down

0 comments on commit 08238b1

Please sign in to comment.