Skip to content

Commit

Permalink
apply black
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Fairchild committed Oct 24, 2023
1 parent 7af3556 commit 5b1090a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bittensor/commands/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ def run(cli):
for matrix in weights:
[uid, weights_data] = matrix

normalized_weights = (
np.array(weights_data)[:, 1] / min(np.sum(weights_data, axis=0)[1], 1)
normalized_weights = np.array(weights_data)[:, 1] / min(
np.sum(weights_data, axis=0)[1], 1
)
for weight_data, normalized_weight in zip(weights_data, normalized_weights):
[netuid, _] = weight_data
Expand Down

0 comments on commit 5b1090a

Please sign in to comment.