myshell-test
commited on
Commit
•
193bd10
1
Parent(s):
7df71f3
Update app.py
Browse files
app.py
CHANGED
@@ -210,7 +210,9 @@ def get_subnet_data(
|
|
210 |
hex_data = commitment[list(commitment.keys())[0]][2:]
|
211 |
chain_str = bytes.fromhex(hex_data).decode()
|
212 |
block = metadata["block"]
|
213 |
-
incentive = metagraph.incentive[uid].nan_to_num().item()
|
|
|
|
|
214 |
emission = (
|
215 |
metagraph.emission[uid].nan_to_num().item() * 20
|
216 |
) # convert to daily TAO
|
|
|
210 |
hex_data = commitment[list(commitment.keys())[0]][2:]
|
211 |
chain_str = bytes.fromhex(hex_data).decode()
|
212 |
block = metadata["block"]
|
213 |
+
# incentive = metagraph.incentive[uid].nan_to_num().item()
|
214 |
+
incentive = np.nan_to_num(metagraph.incentive[uid]).item()
|
215 |
+
|
216 |
emission = (
|
217 |
metagraph.emission[uid].nan_to_num().item() * 20
|
218 |
) # convert to daily TAO
|