James McCool commited on
Commit
60f791f
·
1 Parent(s): bfa4569

Replace exposure_spread function call with reassess_edge in app.py to improve edge reassessment logic for player exposure handling during lineup processing.

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -26,6 +26,7 @@ from global_func.reduce_volatility_preset import reduce_volatility_preset
26
  from global_func.analyze_player_combos import analyze_player_combos
27
  from global_func.stratification_function import stratification_function
28
  from global_func.exposure_spread import exposure_spread
 
29
 
30
  freq_format = {'Finish_percentile': '{:.2%}', 'Lineup Edge': '{:.2%}', 'Win%': '{:.2%}'}
31
  stacking_sports = ['MLB', 'NHL', 'NFL', 'LOL']
@@ -1518,7 +1519,7 @@ with tab2:
1518
  elif exp_submitted:
1519
  st.session_state['settings_base'] = False
1520
  prior_frame = st.session_state['export_base'].copy()
1521
- parsed_frame = exposure_spread(st.session_state['export_base'], st.session_state['exposure_player'], exposure_target, exposure_stack_bool, remove_teams_exposure, st.session_state['projections_df'], sport_var, type_var, salary_max, stacking_sports)
1522
 
1523
  if type_var == 'Classic':
1524
  if sport_var == 'CS2' or sport_var == 'LOL':
 
26
  from global_func.analyze_player_combos import analyze_player_combos
27
  from global_func.stratification_function import stratification_function
28
  from global_func.exposure_spread import exposure_spread
29
+ from global_func.reassess_edge import reassess_edge
30
 
31
  freq_format = {'Finish_percentile': '{:.2%}', 'Lineup Edge': '{:.2%}', 'Win%': '{:.2%}'}
32
  stacking_sports = ['MLB', 'NHL', 'NFL', 'LOL']
 
1519
  elif exp_submitted:
1520
  st.session_state['settings_base'] = False
1521
  prior_frame = st.session_state['export_base'].copy()
1522
+ parsed_frame = reassess_edge(st.session_state['export_base'], st.session_state['exposure_player'], exposure_target, exposure_stack_bool, remove_teams_exposure, st.session_state['projections_df'], sport_var, type_var, salary_max, stacking_sports)
1523
 
1524
  if type_var == 'Classic':
1525
  if sport_var == 'CS2' or sport_var == 'LOL':