@@ -1471,7 +1471,7 @@ async def get_minimum_required_stake(self):
1471
1471
async def get_metagraph_info (
1472
1472
self ,
1473
1473
netuid : int ,
1474
- field_indices : Optional [list ["SelectiveMetagraphIndex" ]] = None ,
1474
+ field_indexes : Optional [list ["SelectiveMetagraphIndex" ]] = None ,
1475
1475
block : Optional [int ] = None ,
1476
1476
block_hash : Optional [str ] = None ,
1477
1477
reuse_block : bool = False ,
@@ -1481,7 +1481,7 @@ async def get_metagraph_info(
1481
1481
1482
1482
Arguments:
1483
1483
netuid (int): The NetUID of the subnet to query.
1484
- field_indices (Optional[list[SelectiveMetagraphIndex]]): An optional list of SelectiveMetagraphIndex values
1484
+ field_indexes (Optional[list[SelectiveMetagraphIndex]]): An optional list of SelectiveMetagraphIndex values
1485
1485
specifying which fields to retrieve. If not provided, all available fields will be returned.
1486
1486
block: the block number at which to retrieve the hyperparameter. Do not specify if using block_hash or
1487
1487
reuse_block
@@ -1498,19 +1498,19 @@ async def get_metagraph_info(
1498
1498
1499
1499
partial_meta_info = subtensor.get_metagraph_info(
1500
1500
netuid=2,
1501
- field_indices =[SelectiveMetagraphIndex.Name, SelectiveMetagraphIndex.OwnerHotkeys]
1501
+ field_indexes =[SelectiveMetagraphIndex.Name, SelectiveMetagraphIndex.OwnerHotkeys]
1502
1502
)
1503
1503
"""
1504
1504
indexes = SelectiveMetagraphIndex .all_indices ()
1505
1505
1506
- if field_indices :
1507
- if isinstance (field_indices , list ) and all (
1508
- isinstance (f , SelectiveMetagraphIndex ) for f in field_indices
1506
+ if field_indexes :
1507
+ if isinstance (field_indexes , list ) and all (
1508
+ isinstance (f , SelectiveMetagraphIndex ) for f in field_indexes
1509
1509
):
1510
- indexes = [f .value for f in field_indices ]
1510
+ indexes = [f .value for f in field_indexes ]
1511
1511
else :
1512
1512
raise ValueError (
1513
- "`field_indices ` must be a list of SelectiveMetagraphIndex items."
1513
+ "`field_indexes ` must be a list of SelectiveMetagraphIndex items."
1514
1514
)
1515
1515
1516
1516
block_hash = await self .determine_block_hash (block , block_hash , reuse_block )
0 commit comments