我正在清理几个月前编写的一些代码,由于某种原因它不再起作用了……简而言之,我正在使用 scipy.interpolate.LinearNDInterpolator 对象来插入模型并与数据进行比较。现在,当我尝试使用我想要插值的坐标调用插值器对象时,出现以下错误:
In [9]: a([[3500, 3.5, 1.5]])
AttributeError Traceback (most recent call last)
<ipython-input-9-91f2103e7a0c> in <module>()
----> 1 a([[3500, 3.5, 1.5]])
/usr/lib64/python2.7/site-packages/scipy/interpolate/interpnd.so in scipy.interpolate.interpnd.NDInterpolatorBase.__call__ (scipy/interpolate/interpnd.c:3133)()
/usr/lib64/python2.7/site-packages/scipy/interpolate/interpnd.so in scipy.interpolate.interpnd.LinearNDInterpolator._evaluate_double (scipy/interpolate/interpnd.c:3954)()
/usr/lib64/python2.7/site-packages/scipy/interpolate/interpnd.so in scipy.interpolate.interpnd.LinearNDInterpolator._do_evaluate (scipy/interpolate/interpnd.c:4684)()
AttributeError: 'Delaunay' object has no attribute 'simplices'
我以前从未见过此错误,并且该代码以前可以正常工作。我不知道的 scipy 发生了什么变化吗?
感谢您的关注!