diff --git a/bittensor/commands/root.py b/bittensor/commands/root.py index 939b53f0a5..119c2685df 100644 --- a/bittensor/commands/root.py +++ b/bittensor/commands/root.py @@ -234,8 +234,10 @@ def run(cli): netuids = set() for matrix in weights: [uid, weights_data] = matrix - - normalized_weights = np.array(weights_data)[:, 1] / np.sum(weights_data, axis=0)[1] + + normalized_weights = ( + np.array(weights_data)[:, 1] / np.sum(weights_data, axis=0)[1] + ) for weight_data, normalized_weight in zip(weights_data, normalized_weights): [netuid, _] = weight_data netuids.add(netuid) @@ -243,7 +245,6 @@ def run(cli): uid_to_weights[uid] = {} uid_to_weights[uid][netuid] = normalized_weight - for netuid in netuids: table.add_column( @@ -262,17 +263,13 @@ def run(cli): for netuid in netuids: if netuid in uid_weights: normalized_weight = uid_weights[netuid] - row.append( - "{:0.2f}%".format(normalized_weight * 100) - ) + row.append("{:0.2f}%".format(normalized_weight * 100)) else: row.append("-") table.add_row(*row) table.show_footer = True - - table.box = None table.pad_edge = False table.width = None