Skip to content

Restrict Positions for opposing team. #423

@chrisbach1

Description

@chrisbach1

Anyone know why this wouldnt be working?

optimizer.restrict_positions_for_opposing_team(['P'], ['C', 'SS', 'OF', '1B', '2B', '3B'])

Traceback (most recent call last):
File "C:\Users\chris\Desktop\MLB\02. MLB Optimizer.py", line 17, in
optimizer.restrict_positions_for_opposing_team(['P'], ['C', 'SS', 'OF', '1B', '2B', '3B'])
File "C:\Users\chris\AppData\Local\Programs\Python\Python310\lib\site-packages\pydfs_lineup_optimizer\lineup_optimizer.py", line 350, in restrict_positions_for_opposing_team
raise ValueError("Each restriction should be a tuple of (first_team_positions, second_team_positions, max_allowed)")
ValueError: Each restriction should be a tuple of (first_team_positions, second_team_positions, max_allowed)
[Finished in 157ms]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions