James McCool
commited on
Commit
·
df9baf3
1
Parent(s):
dcd8d99
Adjust lineups_to_add calculation in exposure_spread function to ensure accurate player addition logic during exposure evaluations, enhancing clarity in exposure adjustments.
Browse files
global_func/exposure_spread.py
CHANGED
|
@@ -259,7 +259,7 @@ def exposure_spread(working_frame, exposure_player, exposure_target, exposure_st
|
|
| 259 |
lineups_to_remove = (player_exposure * len(working_frame))
|
| 260 |
else:
|
| 261 |
lineups_to_remove = ((player_exposure - exposure_target) * len(working_frame)) * 1.01
|
| 262 |
-
lineups_to_add = (exposure_target * len(working_frame)) * 1.01
|
| 263 |
|
| 264 |
# isolate the rows that contain the player
|
| 265 |
player_rows = working_frame[player_mask]
|
|
|
|
| 259 |
lineups_to_remove = (player_exposure * len(working_frame))
|
| 260 |
else:
|
| 261 |
lineups_to_remove = ((player_exposure - exposure_target) * len(working_frame)) * 1.01
|
| 262 |
+
lineups_to_add = ((exposure_target - player_exposure) * len(working_frame)) * 1.01
|
| 263 |
|
| 264 |
# isolate the rows that contain the player
|
| 265 |
player_rows = working_frame[player_mask]
|