Skip to content

Commit 08238b1

Browse files
Pylint: Add pylint ignores to more human-friendly formatted matrices
1 parent fd3b710 commit 08238b1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Orange/statistics/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ def nanunique(*args, **kwargs):
447447
result, counts = result
448448
non_nan_mask = ~np.isnan(result)
449449
return result[non_nan_mask], counts[non_nan_mask]
450-
450+
451451
return result[~np.isnan(result)]
452452

453453

Orange/tests/test_statistics.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ def test_sparse_explicit_zeros(self):
398398

399399
@dense_sparse
400400
def test_nanunique_ignores_nans_in_values(self, array):
401+
# pylint: disable=bad-whitespace
401402
x = array([[-1., 1., 0., 2., 3., np.nan],
402403
[ 0., 0., 0., 3., 5., np.nan],
403404
[-1., 0., 0., 1., 7., 6.]])
@@ -407,6 +408,7 @@ def test_nanunique_ignores_nans_in_values(self, array):
407408

408409
@dense_sparse
409410
def test_nanunique_ignores_nans_in_counts(self, array):
411+
# pylint: disable=bad-whitespace
410412
x = array([[-1., 1., 0., 2., 3., np.nan],
411413
[ 0., 0., 0., 3., 5., np.nan],
412414
[-1., 0., 0., 1., 7., 6.]])

0 commit comments

Comments
 (0)