Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
reidjohnson committed Feb 10, 2024
1 parent 9aa9aa5 commit 6913890
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion quantile_forest/_quantile_forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,9 @@ def proximity_counts(

if return_sorted:
# Sort each dict of proximities in descending order by count.
proximities = [sorted(p.items(), key=lambda x: x[1], reverse=True) for p in proximities]
proximities = [
sorted(p.items(), key=lambda x: x[1], reverse=True) for p in proximities
]
else:
proximities = [p.items() for p in proximities]

Expand Down
4 changes: 3 additions & 1 deletion quantile_forest/tests/test_quantile_forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,9 @@ def _dicts_to_input_pairs(input_dicts):
]

# Check that empty array is returned for weights that sum to 0.
actual = [calc_weighted_quantile(i, w, quantiles) for i, w in _dicts_to_weighted_inputs(inputs)]
actual = [
calc_weighted_quantile(i, w, quantiles) for i, w in _dicts_to_weighted_inputs(inputs)
]
expected = [[], [], []]
assert_array_equal(actual, expected)

Expand Down

0 comments on commit 6913890

Please sign in to comment.