我正在清理掉幾個月前寫的一些代碼,並且由於某種原因它不再工作了......簡而言之, ,我正在使用scipy.interpolate.LinearNDInterpolator對象來插入模型並與數據進行比較。現在,當我試圖打電話與我想的插值座標插補對象,我得到以下錯誤:scipy.interpolate.interpnd抱怨'Delaunay'對象沒有屬性'simplices'
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中有什麼東西只是改變了,我不知道?
感謝您的期待!
你能創建一個簡單的,自包含的例子來證明問題嗎?你之前使用的是什麼版本的scipy,現在你在用什麼? –