Spaces:
Running
Running
James McCool
commited on
Commit
·
b595660
1
Parent(s):
f813ac9
Refine maximum index limits for RB and WR position requirements in Streamlit app to 1000, 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), 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']}")
|
@@ -306,8 +306,8 @@ def designate_base_position_reqs() -> dict:
|
|
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),
|
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), 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']}")
|
|
|
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), 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']}")
|