DimaKudosh / pydfs-lineup-optimizer

Daily Fantasy Sports lineup optimzer for all popular daily fantasy sports sites
MIT License
424 stars 157 forks source link

TeamStack exclude Pitcher #409

Closed Milkman9691 closed 1 year ago

Milkman9691 commented 1 year ago

I been trying to create TeamStack and while I sometimes use the team I am stacking Pitcher I do not want them included in my stack. I have tried using the *for_positions=['1B', etc] argument but that kicks an error msg

Any help is appreciated

Milkman9691 commented 1 year ago

NVM i got it figured out. You cannot use the actual position assignments such as

['C', '1B', '1B/2B', '1B/3B', '1B/OF', '2B', '2B/3B', '2B/OF', '2B/SS', '3B', '3B/OF', '3B/SS', 'C/1B', 'C/OF', 'OF', 'SS'] #this throws error

but rather must use the more vague slotting assignments of

['C', '1B', '2B', '3B', 'SS', 'OF'] #this does not throw error