Skip to content
Browse files

updated to sgf==0.5

  • Loading branch information...
1 parent 7e3add5 commit 9084214ba2daede206425e65facae7b9c24c439f @wrongu wrongu committed
Showing with 4 additions and 7 deletions.
  1. +1 −1 .travis.yml
  2. +2 −4 AlphaGo/util.py
  3. +1 −2 requirements.txt
View
2 .travis.yml
@@ -14,7 +14,7 @@ before_install:
# Install packages
install:
- conda install --yes python=2.7 numpy scipy matplotlib pandas pytest h5py
- - pip install --user --no-deps sgf==0.4 -e git://github.com/Theano/Theano.git#egg=Theano
+ - pip install --user --no-deps sgf==0.5 -e git://github.com/Theano/Theano.git#egg=Theano
- pip install --user --no-deps -e git://github.com/fchollet/keras.git#egg=keras
# run unit tests
View
6 AlphaGo/util.py
@@ -55,10 +55,8 @@ def sgf_iter_states(sgf_string):
"""
collection = sgf.parse(sgf_string)
game = collection[0]
- node_iterator = iter(game)
- root = next(node_iterator)
- gs = _sgf_init_gamestate(root)
- for node in node_iterator:
+ gs = _sgf_init_gamestate(game.root)
+ for node in game.rest:
props = node.properties
if 'W' in props:
move = _parse_sgf_move(props['W'][0])
View
3 requirements.txt
@@ -3,8 +3,7 @@ h5py==2.5.0
numpy==1.10.4
PyYAML==3.11
scipy==0.17.0
-sgf==0.4
+sgf==0.5
six==1.10.0
-e git://github.com/Theano/Theano.git@eab9cf5d594bac251df57885509394d2c52ccd1a#egg=Theano
-e git://github.com/fchollet/keras.git@b0303f03ff03b23766e01efca9a0395a3341b38c#egg=keras
-wheel==0.29.0

0 comments on commit 9084214

Please sign in to comment.
Something went wrong with that request. Please try again.