提交 570d61d4 authored 作者: James Bergstra's avatar James Bergstra

future-friendly check for scipy.sparse version

上级 e16f2ec7
...@@ -4,7 +4,7 @@ enable_sparse=True ...@@ -4,7 +4,7 @@ enable_sparse=True
try: try:
import scipy import scipy
if not scipy.__version__.startswith('0.7.'): if scipy.__version__ < '0.7':
sys.stderr.write("WARNING: scipy version = %s. We request version >=0.7.0 for the sparse code as it has bugs fixed in the sparse matrix code.\n" % scipy.__version__) sys.stderr.write("WARNING: scipy version = %s. We request version >=0.7.0 for the sparse code as it has bugs fixed in the sparse matrix code.\n" % scipy.__version__)
enable_sparse=False enable_sparse=False
except ImportError: except ImportError:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论