Spaces:
Running
Running
James McCool
commited on
Commit
·
7fd3610
1
Parent(s):
6692328
Refine maximum index limits for RB and WR position requirements in Streamlit app to 1000, while restoring QB and TE limits to 36 and 30 respectively, enhancing accuracy in player evaluations across varying team sizes.
Browse files- src/streamlit_app.py +4 -4
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), 36)
|
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,10 +305,10 @@ 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), 1000)
|
310 |
wr_rv_index = min(math.ceil((wr_base + ((12 * 1) * .55)) * 2), 1000)
|
311 |
-
te_rv_index = min(math.ceil((te_base + ((12 * 1) * .05)) * 2),
|
312 |
|
313 |
print(f"Need {qb_rv_index} for QB in {12} teams with type {league_settings['TYPE']}")
|
314 |
print(f"Need {rb_rv_index} for RB 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), 36)
|
284 |
+
rb_rv_index = min(math.ceil((rb_base + ((league_settings['TEAMS'] * league_settings['FLEX']) * flex_percentiles['RB'])) * rb_flex_mult), 1000)
|
285 |
+
wr_rv_index = min(math.ceil((wr_base + ((league_settings['TEAMS'] * league_settings['FLEX']) * flex_percentiles['WR'])) * wr_flex_mult), 1000)
|
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), 36)
|
309 |
rb_rv_index = min(math.ceil((rb_base + ((12 * 1) * .40)) * 2), 1000)
|
310 |
wr_rv_index = min(math.ceil((wr_base + ((12 * 1) * .55)) * 2), 1000)
|
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']}")
|
314 |
print(f"Need {rb_rv_index} for RB in {12} teams with type {league_settings['TYPE']}")
|