提交 07c889c5 authored 作者: Frederic Bastien's avatar Frederic Bastien

Fix crash when scipy isn't there

上级 07a689b6
...@@ -649,7 +649,7 @@ second dimension ...@@ -649,7 +649,7 @@ second dimension
# - NumPy ufunc support only up to 31 inputs. # - NumPy ufunc support only up to 31 inputs.
# But our c code support more. # But our c code support more.
# - nfunc is reused for scipy and scipy is optional # - nfunc is reused for scipy and scipy is optional
if getattr(self, 'nfunc_spec', None): if getattr(self, 'nfunc_spec', None) and impl != 'c':
self.nfunc = getattr(np, self.nfunc_spec[0], None) self.nfunc = getattr(np, self.nfunc_spec[0], None)
if self.nfunc is None: if self.nfunc is None:
# Not inside NumPy. So probably another package like scipy. # Not inside NumPy. So probably another package like scipy.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论