Spaces:
Running
Running
James McCool
commited on
Commit
·
e40bf7b
1
Parent(s):
5467935
Refine maximum index limits for RB and WR position requirements in Streamlit app to 60 and 96 respectively, enhancing accuracy in player evaluations across varying team sizes.
Browse files- src/streamlit_app.py +5 -5
src/streamlit_app.py
CHANGED
@@ -281,8 +281,8 @@ def designate_custom_position_reqs(league_settings: dict, flex_percentiles: dict
|
|
281 |
te_flex_mult = flex_multipliers['TE'] * (league_settings['TEAMS'] / 12)
|
282 |
|
283 |
qb_rv_index = min(math.ceil((qb_base) * qb_flex_mult), 30)
|
284 |
-
rb_rv_index = min(math.ceil((rb_base + ((league_settings['TEAMS'] * league_settings['FLEX']) * flex_percentiles['RB'])) * rb_flex_mult),
|
285 |
-
wr_rv_index = min(math.ceil((wr_base + ((league_settings['TEAMS'] * league_settings['FLEX']) * flex_percentiles['WR'])) * wr_flex_mult),
|
286 |
te_rv_index = min(math.ceil((te_base + ((league_settings['TEAMS'] * league_settings['FLEX']) * flex_percentiles['TE'])) * te_flex_mult), 30)
|
287 |
|
288 |
print(f"Need {qb_rv_index} for QB in {league_settings['TEAMS']} teams with type {league_settings['TYPE']}")
|
@@ -305,9 +305,9 @@ def designate_base_position_reqs() -> dict:
|
|
305 |
wr_base = 3 * 12
|
306 |
te_base = 1 * 12
|
307 |
|
308 |
-
qb_rv_index = min(math.ceil(qb_base * 2),
|
309 |
-
rb_rv_index = min(math.ceil((rb_base + ((12 * 1) * .40)) * 2),
|
310 |
-
wr_rv_index = min(math.ceil((wr_base + ((12 * 1) * .55)) * 2),
|
311 |
te_rv_index = min(math.ceil((te_base + ((12 * 1) * .05)) * 2), 30)
|
312 |
|
313 |
print(f"Need {qb_rv_index} for QB in {12} teams with type {league_settings['TYPE']}")
|
|
|
281 |
te_flex_mult = flex_multipliers['TE'] * (league_settings['TEAMS'] / 12)
|
282 |
|
283 |
qb_rv_index = min(math.ceil((qb_base) * qb_flex_mult), 30)
|
284 |
+
rb_rv_index = min(math.ceil((rb_base + ((league_settings['TEAMS'] * league_settings['FLEX']) * flex_percentiles['RB'])) * rb_flex_mult), 60)
|
285 |
+
wr_rv_index = min(math.ceil((wr_base + ((league_settings['TEAMS'] * league_settings['FLEX']) * flex_percentiles['WR'])) * wr_flex_mult), 96)
|
286 |
te_rv_index = min(math.ceil((te_base + ((league_settings['TEAMS'] * league_settings['FLEX']) * flex_percentiles['TE'])) * te_flex_mult), 30)
|
287 |
|
288 |
print(f"Need {qb_rv_index} for QB in {league_settings['TEAMS']} teams with type {league_settings['TYPE']}")
|
|
|
305 |
wr_base = 3 * 12
|
306 |
te_base = 1 * 12
|
307 |
|
308 |
+
qb_rv_index = min(math.ceil(qb_base * 2), 30)
|
309 |
+
rb_rv_index = min(math.ceil((rb_base + ((12 * 1) * .40)) * 2), 60)
|
310 |
+
wr_rv_index = min(math.ceil((wr_base + ((12 * 1) * .55)) * 2), 96)
|
311 |
te_rv_index = min(math.ceil((te_base + ((12 * 1) * .05)) * 2), 30)
|
312 |
|
313 |
print(f"Need {qb_rv_index} for QB in {12} teams with type {league_settings['TYPE']}")
|