提交 162b24d3 authored 作者: abalkin's avatar abalkin

Issue #783: python3 compatible - fixed another instance affected by numpy's isinstance(x, int) bug.

上级 caea95cf
......@@ -496,7 +496,7 @@ def get_scalar_constant_value(v):
# on passing it None)
raise NotScalarConstantError()
if isinstance(v, (int, float)):
if isinstance(v, (numpy.integer, int, float)):
return numpy.asarray(v)
def numpy_scalar(n):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论