@@ -44,16 +44,14 @@ def get_config(self):
44
44
# Parse the config.
45
45
config = bt .config (parser )
46
46
# Set up logging directory.
47
-
48
- logging_path = "{}/{}/{}/netuid{}/{} " .format (
49
- config .logging .logging_dir ,
50
- config .wallet .name ,
51
- config .wallet .hotkey_str ,
52
- config .netuid ,
53
- "validator" ,
47
+ config . full_path = os . path . expanduser (
48
+ "{}/{}/{}/netuid{}/validator " .format (
49
+ config .logging .logging_dir ,
50
+ config .wallet .name ,
51
+ config .wallet .hotkey_str ,
52
+ config .netuid ,
53
+ )
54
54
)
55
- config .full_path = os .path .expanduser (logging_path )
56
-
57
55
# Ensure the logging directory exists.
58
56
os .makedirs (config .full_path , exist_ok = True )
59
57
return config
@@ -89,7 +87,7 @@ def setup_bittensor_objects(self):
89
87
# Connect the validator to the network.
90
88
if self .wallet .hotkey .ss58_address not in self .metagraph .hotkeys :
91
89
bt .logging .error (
92
- f"Your validator: { self .wallet } is not registered to chain connection: { self .subtensor } \n Run 'btcli register' and try again."
90
+ f"\n Your validator: { self .wallet } is not registered to chain connection: { self .subtensor } \n Run 'btcli register' and try again."
93
91
)
94
92
exit ()
95
93
else :
@@ -149,7 +147,7 @@ def run(self):
149
147
if self .last_update > self .tempo + 1 :
150
148
total = sum (self .moving_avg_scores )
151
149
weights = [score / total for score in self .moving_avg_scores ]
152
- bt .logging .info (f"Setting weights: { weights } " )
150
+ bt .logging .info (f"[blue] Setting weights: { weights } [/blue] " )
153
151
# Update the incentive mechanism on the Bittensor blockchain.
154
152
result = self .subtensor .set_weights (
155
153
netuid = self .config .netuid ,
0 commit comments