Skip to content

Commit

Permalink
fix dynprog example
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Jun 9, 2012
1 parent 1f37d99 commit 89d623e
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -22,7 +22,14 @@
except ImportError:
from io import StringIO

if scipy.__version__ >= '0.7.0':
def get_ver(ver_str):
scipy_ver=[int(i) for i in scipy.__version__.split('.')]
v=0
for i in xrange(len(scipy_ver)):
v+=10**(len(scipy_ver)-i)*scipy_ver[i]
return v

if get_ver(scipy.__version__) >= get_ver('0.7.0'):
renametable = {
'scipy.io.mio5': 'scipy.io.matlab.mio5',
'scipy.sparse.sparse' : 'scipy.sparse',
Expand Down

0 comments on commit 89d623e

Please sign in to comment.