|
您好,感谢分享。我在使用你的脚本时出现如下报错,百度找不到解决方法,想请教一下。
[qxn@Master ~/001/yzcu4]$ python check_VASP_convergency.py
`np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead.
Traceback (most recent call last):
File "/home/qxn/001/yzcu4/check_VASP_convergency.py", line 216, in <module>
main()
File "/home/qxn/001/yzcu4/check_VASP_convergency.py", line 209, in main
F = grab_Force(poscar, outcar)
File "/home/qxn/001/yzcu4/check_VASP_convergency.py", line 106, in grab_Force
data = np.asfarray(data).reshape((count,atomNum,3))
File "/home/qxn/.local/lib/python3.9/site-packages/numpy/__init__.py", line 397, in __getattr__
raise AttributeError(
AttributeError: `np.asfarray` was removed in the NumPy 2.0 release. Use `np.asarray` with a proper dtype instead.
|
|