pydfs-lineup-optimizer icon indicating copy to clipboard operation
pydfs-lineup-optimizer copied to clipboard

PositionsStack and force_positions_for_opposing_team issue

Open cdbmgrdn opened this issue 4 years ago • 1 comments

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?

cdbmgrdn avatar Dec 12 '20 00:12 cdbmgrdn

Can you post your full code - I just tried the line of code you posted and did not encounter any errors.

sansbacon avatar Dec 22 '20 12:12 sansbacon