opentensor / bittensor

Internet-scale Neural Networks
https://www.bittensor.com/
MIT License
918 stars 318 forks source link

missing force_register_neuron in MockSubtensor - bittensor==8.0 #2325

Open wjurkowlaniec opened 1 month ago

wjurkowlaniec commented 1 month ago

Describe the bug

In template, there is force_register_neuron in MockSubtensor which is not available in new bittensor library

│ /Users/wojtasy/dev/_cancer_ai/cancerai/cancer_ai/mock.py:29 in __init__                          │
│                                                                                                  │
│    26 │   │                                                                                      │
│    27 │   │   # Register n mock neurons who will be miners                                       │
│    28 │   │   for i in range(1, n + 1):                                                          │
│ ❱  29 │   │   │   self.force_register_neuron(                                                    │
│    30 │   │   │   │   netuid=netuid,                                                             │
│    31 │   │   │   │   hotkey=f"miner-hotkey-{i}",                                                │
│    32 │   │   │   │   coldkey="mock-coldkey",                                                    │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'MockSubtensor' object has no attribute 'force_register_neuron'

To Reproduce

Expected behavior

should work out of the box

Screenshots

No response

Environment

OSX / Ubuntu

Additional context

No response