Spaces:
Running
Running
James McCool
commited on
Commit
·
9d34191
1
Parent(s):
9771fe3
Update VORP index calculations in Streamlit app to increase upper limit for QB multipliers from 30 to 36, ensuring more accurate player ranking adjustments.
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
@@ -275,7 +275,7 @@ def designate_custom_position_reqs(league_settings: dict, flex_percentiles: dict
|
|
275 |
wr_base = league_settings['WR'] * league_settings['TEAMS']
|
276 |
te_base = league_settings['TE'] * league_settings['TEAMS']
|
277 |
|
278 |
-
qb_rv_index = min(math.ceil((qb_base) * flex_multipliers['QB']),
|
279 |
rb_rv_index = min(math.ceil((rb_base + ((league_settings['TEAMS'] * league_settings['FLEX']) * flex_percentiles['RB'])) * flex_multipliers['RB']), 60)
|
280 |
wr_rv_index = min(math.ceil((wr_base + ((league_settings['TEAMS'] * league_settings['FLEX']) * flex_percentiles['WR'])) * flex_multipliers['WR']), 90)
|
281 |
te_rv_index = min(math.ceil((te_base + ((league_settings['TEAMS'] * league_settings['FLEX']) * flex_percentiles['TE'])) * flex_multipliers['TE']), 30)
|
@@ -300,7 +300,7 @@ def designate_base_position_reqs() -> dict:
|
|
300 |
wr_base = 3 * 12
|
301 |
te_base = 1 * 12
|
302 |
|
303 |
-
qb_rv_index = min(math.ceil(qb_base * 2),
|
304 |
rb_rv_index = min(math.ceil((rb_base + ((12 * 1) * .40)) * 2), 60)
|
305 |
wr_rv_index = min(math.ceil((wr_base + ((12 * 1) * .55)) * 2), 90)
|
306 |
te_rv_index = min(math.ceil((te_base + ((12 * 1) * .05)) * 2), 30)
|
|
|
275 |
wr_base = league_settings['WR'] * league_settings['TEAMS']
|
276 |
te_base = league_settings['TE'] * league_settings['TEAMS']
|
277 |
|
278 |
+
qb_rv_index = min(math.ceil((qb_base) * flex_multipliers['QB']), 36)
|
279 |
rb_rv_index = min(math.ceil((rb_base + ((league_settings['TEAMS'] * league_settings['FLEX']) * flex_percentiles['RB'])) * flex_multipliers['RB']), 60)
|
280 |
wr_rv_index = min(math.ceil((wr_base + ((league_settings['TEAMS'] * league_settings['FLEX']) * flex_percentiles['WR'])) * flex_multipliers['WR']), 90)
|
281 |
te_rv_index = min(math.ceil((te_base + ((league_settings['TEAMS'] * league_settings['FLEX']) * flex_percentiles['TE'])) * flex_multipliers['TE']), 30)
|
|
|
300 |
wr_base = 3 * 12
|
301 |
te_base = 1 * 12
|
302 |
|
303 |
+
qb_rv_index = min(math.ceil(qb_base * 2), 36)
|
304 |
rb_rv_index = min(math.ceil((rb_base + ((12 * 1) * .40)) * 2), 60)
|
305 |
wr_rv_index = min(math.ceil((wr_base + ((12 * 1) * .55)) * 2), 90)
|
306 |
te_rv_index = min(math.ceil((te_base + ((12 * 1) * .05)) * 2), 30)
|