Spaces:
Sleeping
Sleeping
James McCool
commited on
Commit
·
3076618
1
Parent(s):
cda93c5
Add debug print statements in exposure_spread function to display calculated lineups_to_remove and lineups_to_add, improving visibility into player adjustments during exposure evaluations.
Browse files
global_func/exposure_spread.py
CHANGED
|
@@ -261,7 +261,9 @@ def exposure_spread(working_frame, exposure_player, exposure_target, exposure_st
|
|
| 261 |
else:
|
| 262 |
lineups_to_remove = ((player_exposure - exposure_target) * len(working_frame)) * 1.01
|
| 263 |
lineups_to_add = ((exposure_target - replace_exposure) * len(working_frame)) * 1.01
|
| 264 |
-
|
|
|
|
|
|
|
| 265 |
# isolate the rows that contain the player
|
| 266 |
player_rows = working_frame[player_mask]
|
| 267 |
replace_rows = working_frame[replace_mask]
|
|
|
|
| 261 |
else:
|
| 262 |
lineups_to_remove = ((player_exposure - exposure_target) * len(working_frame)) * 1.01
|
| 263 |
lineups_to_add = ((exposure_target - replace_exposure) * len(working_frame)) * 1.01
|
| 264 |
+
print(lineups_to_remove)
|
| 265 |
+
print(lineups_to_add)
|
| 266 |
+
|
| 267 |
# isolate the rows that contain the player
|
| 268 |
player_rows = working_frame[player_mask]
|
| 269 |
replace_rows = working_frame[replace_mask]
|