Skip to content

Commit

Permalink
style fixes by ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
wspr authored and github-actions[bot] committed Mar 31, 2024
1 parent 4e118fa commit 8cf0569
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ausankey/ausankey.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,11 @@ def setup(self, data):
for nn, lbl in enumerate(self.data[2 * ii]):
val = self.node_sizes[ii][lbl]
if lbl is not None and (
val < self.other_thresh_val or
val < self.other_thresh_sum * self.weight_sum[ii] or
val < self.other_thresh_max * max(self.data[2 * ii + 1])
):
self.data.iat[nn,2 * ii] = self.other_name
val < self.other_thresh_val
or val < self.other_thresh_sum * self.weight_sum[ii]
or val < self.other_thresh_max * max(self.data[2 * ii + 1])
):
self.data.iat[nn, 2 * ii] = self.other_name
self.weight_labels()

# sort and calc
Expand Down

0 comments on commit 8cf0569

Please sign in to comment.