diff --git a/Makefile b/Makefile index 7e4c62f..721c621 100644 --- a/Makefile +++ b/Makefile @@ -58,4 +58,3 @@ miner2: --logging.level $(logging_level) \ --timeout 16 \ --forward_function forward_bad - diff --git a/precog/utils/general.py b/precog/utils/general.py index f0a343f..59b9fc2 100644 --- a/precog/utils/general.py +++ b/precog/utils/general.py @@ -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 diff --git a/precog/validators/weight_setter.py b/precog/validators/weight_setter.py index 1199827..067aa5b 100755 --- a/precog/validators/weight_setter.py +++ b/precog/validators/weight_setter.py @@ -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)) @@ -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)):