Spaces:
Configuration error
Configuration error
Commit
·
bb28562
1
Parent(s):
44ca1ef
fix metadata gathering fn
Browse files- subnet_util.py +1 -2
subnet_util.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
import bittensor as bt
|
| 2 |
-
from bittensor.extrinsics.serving import get_metadata
|
| 3 |
from utils import functools, run_in_subprocess
|
| 4 |
from tqdm import tqdm
|
| 5 |
import concurrent.futures
|
|
@@ -82,7 +81,7 @@ def get_subnet_data(
|
|
| 82 |
hotkey = metagraph.hotkeys[uid]
|
| 83 |
try:
|
| 84 |
partial = functools.partial(
|
| 85 |
-
get_metadata, subtensor, metagraph.netuid, hotkey
|
| 86 |
)
|
| 87 |
metadata = run_in_subprocess(partial, 30)
|
| 88 |
except Exception as e:
|
|
|
|
| 1 |
import bittensor as bt
|
|
|
|
| 2 |
from utils import functools, run_in_subprocess
|
| 3 |
from tqdm import tqdm
|
| 4 |
import concurrent.futures
|
|
|
|
| 81 |
hotkey = metagraph.hotkeys[uid]
|
| 82 |
try:
|
| 83 |
partial = functools.partial(
|
| 84 |
+
bt.extrinsics.serving.get_metadata, subtensor, metagraph.netuid, hotkey
|
| 85 |
)
|
| 86 |
metadata = run_in_subprocess(partial, 30)
|
| 87 |
except Exception as e:
|