Skip to content

Commit

Permalink
revert wandb deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
surcyf123 authored Jan 30, 2024
1 parent d3dfb5a commit d5f8d99
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions validators/weight_setter.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,22 +75,6 @@ async def consume_organic_scoring(self):
except Exception as e:
bt.logging.error(f'Encountered in {self.consume_organic_scoring.__name__} loop:\n{traceback.format_exc()}')
await asyncio.sleep(10)

def remove_directory(self, path):
# Remove wandb logs
try:
# Expands the '~' to the home directory
full_path = os.path.expanduser(path)

# Check if the directory exists
if os.path.exists(full_path):
# Recursively delete the directory and its contents
shutil.rmtree(full_path)
print(f"Successfully removed {full_path}")
else:
print(f"The directory {full_path} does not exist.")
except Exception as e:
bt.logging.error(f"error in remove directory {traceback.format_exc()}")


async def perform_synthetic_scoring_and_update_weights(self):
Expand All @@ -106,7 +90,6 @@ async def perform_synthetic_scoring_and_update_weights(self):
steps_since_last_update = steps_passed % iterations_per_set_weights

if steps_since_last_update == iterations_per_set_weights - 1:
self.remove_directory('~/.bittensor/miners/')
await self.update_weights(steps_passed)
else:
bt.logging.info(
Expand Down

0 comments on commit d5f8d99

Please sign in to comment.