Skip to content

Commit 737775e

Browse files
committed
cont
1 parent 3542a0e commit 737775e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Orange/statistics/contingency.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ def array_with_unknowns(self):
231231
This function returns the list of all items returned by __getitem__
232232
with adding a row of row_unknowns together with values.
233233
"""
234+
# pylint: disable=unnecessary-comprehension
234235
other_rows = [x for x in self]
235236
ind = self.row_unknowns > 0
236237
unknown_rows = np.vstack((self.values[ind], self.row_unknowns[ind]))

Orange/tests/test_contingency.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ def test_continuous_missing(self):
165165
3., 4., 2., 1., 1., 1., 1.])
166166
self.assertEqual(cont.unknowns, 1)
167167

168-
def test_continuous_array_with_unknowns(self):
168+
@staticmethod
169+
def test_continuous_array_with_unknowns():
169170
"""
170171
Test array_with_unknowns function
171172
"""

0 commit comments

Comments
 (0)