Comments (3)
Hello,
load_players
method takes list of Player objects, so you should convert you player arrays to Player
objects before.
from pydfs-lineup-optimizer.
Oh ok, that makes sense. Thanks! I got it to load, however there seems to be something wrong with the position. For example, when I try to pass D'Angelo Russell (like in the example originally mentioned) his positions goes from SG to S/G, causing an error that won't let me optimize.
Do you know of a way around this? Not sure why it's adding the random "/"
EDIT: nvm, found out I needed to put {} around it. Closing it, and thanks for your help!
from pydfs-lineup-optimizer.
It because positions should be list of positions, it was made in this way because some sites support multipositional players, in your case it should be ['SG']
from pydfs-lineup-optimizer.
Related Issues (20)
- Using GameStack and TeamStack together HOT 1
- Can't lock player in UTIL Position NBA DraftKings HOT 1
- MLB Fanduel occassional "unable to build lineup" error HOT 7
- TeamStack exclude Pitcher HOT 1
- Issue with FD MLB when player has three positions HOT 1
- Modifications to enhance optimization speed HOT 1
- DK input file for MLB HOT 2
- NFL Stack with Bring Back
- TeamStacks HOT 2
- MIP Solver error HOT 1
- Formula 1 compatibility? HOT 3
- optimizer.get_player_by_name ERROR HOT 4
- Screen Lineups don't match exported lineups HOT 1
- Can we get a Min exposure rule?
- TeamStacks?
- College Basketball NCAAB ?
- Restrict Positions for opposing team. HOT 2
- Roster Range Question HOT 1
- Team exposure but leave out a position HOT 3
- Does Anyone know is there a way? HOT 44
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pydfs-lineup-optimizer.