pydfs-lineup-optimizer
pydfs-lineup-optimizer copied to clipboard
PositionsStack and force_positions_for_opposing_team issue
Hello,
When adding two position options for PositionsStack or force_positions_for_opposing_team, it does not recognize it.
For example, if I want to stack the qb with either the WR or TE, I would do:
optimizer.add_stack(PositionsStack(['QB', ('WR', 'TE')]))
When doing that, I get the following message:
LineupOptimizerIncorrectPositionName: ('WR', 'TE') is incorrect position name. Chocies are [TE,DST,WR,RB,QB]
I imported PositionsStack so that won't be the issue. This should be correct per the documentation, but it's not working for me. Is there a different way to do this?
Can you post your full code - I just tried the line of code you posted and did not encounter any errors.