James McCool
commited on
Commit
·
319e5aa
1
Parent(s):
9034a8a
Adjust lineups_to_remove calculation in exposure_spread function to negate its value before processing, ensuring correct handling of player exposure adjustments based on lineup changes.
Browse files
global_func/exposure_spread.py
CHANGED
|
@@ -318,6 +318,7 @@ def exposure_spread(working_frame, exposure_player, exposure_target, exposure_st
|
|
| 318 |
break
|
| 319 |
change_counter += 1
|
| 320 |
else:
|
|
|
|
| 321 |
for row in random_row_indices:
|
| 322 |
if change_counter < math.ceil(lineups_to_remove):
|
| 323 |
comparable_players = projections_df[
|
|
|
|
| 318 |
break
|
| 319 |
change_counter += 1
|
| 320 |
else:
|
| 321 |
+
lineups_to_remove = lineups_to_remove * -1
|
| 322 |
for row in random_row_indices:
|
| 323 |
if change_counter < math.ceil(lineups_to_remove):
|
| 324 |
comparable_players = projections_df[
|