Skip to content

Commit

Permalink
add name and symbol fields to metagraph
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-opentensor committed Feb 11, 2025
1 parent 82e3734 commit 6062f55
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bittensor/core/metagraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ class MetagraphMixin(ABC):
_dtype_registry = {"int64": np.int64, "float32": np.float32, "bool": bool}

# metagraph_info fields
name: str
symbol: str
identities: list[Optional["ChainIdentity"]]
identity: Optional["SubnetIdentity"]
pruning_score: list[float]
Expand Down Expand Up @@ -937,6 +939,8 @@ def _apply_metagraph_info_mixin(self, metagraph_info: "MetagraphInfo"):
metagraph_info (MetagraphInfo): An instance of the MetagraphInfo class containing the data to be applied to
the current object.
"""
self.name = metagraph_info.name
self.symbol = metagraph_info.symbol
self.identities = metagraph_info.identities
self.identity = metagraph_info.identity
self.pruning_score = metagraph_info.pruning_score
Expand Down

0 comments on commit 6062f55

Please sign in to comment.