Repository navigation
fantasyfb v0.8.0
fantasyfb v0.8.0
Custom roster shapes for generic mock drafts, plus a fix for mock-opponent picks drifting from real-world ADP.
pip install --upgrade fantasyfbHighlights
- Custom roster shapes for generic mock drafts.
--roster-spotsonsnake-draftandsalary-cap-draftlets a--platform genericmock draft use any roster shape, extra flex, superflex viaQ/W/R/T, a bigger bench, instead of the fixed default, via comma-separatedPOSITION=COUNTpairs (e.g.QB=1,RB=2,W/R/T=2,Q/W/R/T=1,BN=6) or an interactive prompt when omitted.GenericClientandLeague(platform="generic")also accept aroster_spotsDataFrame directly for scripted use; an unrecognized position code raisesValueErrorat construction time instead of failing downstream in VORP/roster logic. random/random til menow stay closer to real-world ADP. Simulated opponents' candidate pool was ranked top-VORP-first, with ADP only reweighting sampling within that already VORP-biased shortlist, so mock opponents routinely reached for players far ahead of their market ADP. The pool is now windowed to players withinwindow_roundsof the current overall pick (mirroring thenearestview) before ranking by need-adjusted VORP, so simulated drafts read as more realistic.
See CHANGELOG.md for the full list.