Skip to content

Commit

Permalink
linters
Browse files Browse the repository at this point in the history
  • Loading branch information
hscott-yuma committed Dec 5, 2024
1 parent b16f89d commit 4b68f67
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,3 @@ miner2:
--logging.level $(logging_level) \
--timeout 16 \
--forward_function forward_bad

2 changes: 1 addition & 1 deletion precog/utils/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

import bittensor as bt
import git
from numpy import argsort, array, concatenate, cumsum, empty_like
import requests
from numpy import argsort, array, concatenate, cumsum, empty_like

from precog.utils.classes import NestedNamespace

Expand Down
5 changes: 3 additions & 2 deletions precog/validators/weight_setter.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ def __init__(self, config=None, loop=None):
setup_wandb(self)
self.stop_event = asyncio.Event()
bt.logging.info("Setup complete, starting loop")
self.loop.create_task(loop_handler(self, self.scheduled_prediction_request, sleep_time=self.config.print_cadence))
self.loop.create_task(
loop_handler(self, self.scheduled_prediction_request, sleep_time=self.config.print_cadence)
)
self.loop.create_task(loop_handler(self, self.resync_metagraph, sleep_time=self.resync_metagraph_rate))
self.loop.create_task(loop_handler(self, self.set_weights, sleep_time=self.set_weights_rate))

Expand All @@ -66,7 +68,6 @@ def __exit__(self, exc_type, exc_value, traceback):
bt.logging.error(f"Error on __exit__ function: {e}")
self.loop.stop()


async def get_available_uids(self):
miner_uids = []
for uid in range(len(self.metagraph.S)):
Expand Down

0 comments on commit 4b68f67

Please sign in to comment.