Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing neuron_for_uid_lite in MockSubtensor - bittensor==8.3.1 #2466

Open
Shr1ftyy opened this issue Nov 23, 2024 · 0 comments
Open

missing neuron_for_uid_lite in MockSubtensor - bittensor==8.3.1 #2466

Shr1ftyy opened this issue Nov 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Shr1ftyy
Copy link

Describe the bug

MockSubtensor.neurons_lite calls neuron_for_uid_lite which does not actually exist:

  File "/home/clu/.venv/bt/lib/python3.10/site-packages/bittensor/core/metagraph.py", line 572, in sync                                                 
    self._assign_neurons(block, lite, subtensor)                                                                                                        
  File "/home/clu/.venv/bt/lib/python3.10/site-packages/bittensor/core/metagraph.py", line 630, in _assign_neurons                                      
    self.neurons = subtensor.neurons_lite(block=block, netuid=self.netuid)                                                                              
  File "/home/clu/.venv/bt/lib/python3.10/site-packages/bittensor/utils/mock/subtensor_mock.py", line 828, in neurons_lite                              
    neuron_info = self.neuron_for_uid_lite(uid, netuid, block) 

To Reproduce

Call neurons_lite in MockSubtensor.

Expected behavior

should work

Screenshots

No response

Environment

Ubuntu Linux 24.04.1 LTS

Additional context

No response

@Shr1ftyy Shr1ftyy added the bug Something isn't working label Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant