@@ -85,13 +85,13 @@ def choose_map(self, played_map_ids: Iterable[int] = (), initial_weights: Option
8585 self ._logger .critical ("Trying to choose a map from an empty map pool: %s" , self .name )
8686 raise RuntimeError (f"Map pool { self .name } not set!" )
8787
88- self ._logger .debug ("______initial_played_map_ids___________ : %s" , list (played_map_ids ))
88+ self ._logger .debug ("initial_played_map_ids : %s" , list (played_map_ids ))
8989 played_map_pool_map_version_ids = [
9090 self .maps [id ].map_pool_map_version_id
9191 for id in played_map_ids
9292 if id in self .maps
9393 ]
94- self ._logger .debug ("______played_map_pool_map_version_ids_________ : %s" , played_map_pool_map_version_ids )
94+ self ._logger .debug ("played_map_pool_map_version_ids : %s" , played_map_pool_map_version_ids )
9595
9696 map_list = [(m .map_pool_map_version_id , m ) for m in self .maps .values ()]
9797
@@ -101,10 +101,10 @@ def choose_map(self, played_map_ids: Iterable[int] = (), initial_weights: Option
101101 adjusted_weights = self .apply_antirepetition_adjustment (
102102 initial_weights , played_map_pool_map_version_ids , config .LADDER_ANTI_REPETITION_WEIGHT_BASE_THRESHOLDS , config .LADDER_ANTI_REPETITION_REPEAT_COUNTS_FACTOR
103103 )
104- self ._logger .debug ("______adjusted_weights________________ : %s" , adjusted_weights )
105- self ._logger .debug ("______map_list________________ : %s" , map_list )
104+ self ._logger .debug ("adjusted_weights : %s" , adjusted_weights )
105+ self ._logger .debug ("map_list : %s" , map_list )
106106 final_weights = [adjusted_weights .get (mp_mv_id , 0 ) * m .weight for mp_mv_id , m in map_list ]
107- self ._logger .debug ("______final_weights________________ : %s" , final_weights )
107+ self ._logger .debug ("final_weights : %s" , final_weights )
108108 return random .choices ([map for _ , map in map_list ], weights = final_weights , k = 1 )[0 ].get_map () # nosec B311
109109
110110 def __repr__ (self ) -> str :
0 commit comments