ekkolib 发表于 2024-7-20 22:37:07

vaspkit215元素权重投影能带画图功能报错,无法自动生成图片

========================= Plot Options ==========================
1. PBAND Only
2. PBAND + PDOS

------------>>
1
Traceback (most recent call last):
File "/public/home/wangdg/.whomhsepws", line 116, in <module>
    colorline_plot_binary(ax,kpt,eng,data[:,2],data[:,3],linewidth=lw,alpha=1.)         
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/public/home/wangdg/.whomhsepws", line 95, in colorline_plot_binary
    a = np.ones(nseg, np.float) * alpha                                                                  
                      ^^^^^^^^
File "/public/home/wangdg/anaconda/ENTER/lib/python3.11/site-packages/numpy/__init__.py", line 324, in __getattr__
    raise AttributeError(__former_attrs__)
AttributeError: module 'numpy' has no attribute 'float'.
`np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'cfloat'?
-->> (09) Written PBAND_ELEMENTS_UP.jpg File!
Traceback (most recent call last):
File "/public/home/wangdg/.whomhsepws", line 116, in <module>
    colorline_plot_binary(ax,kpt,eng,data[:,2],data[:,3],linewidth=lw,alpha=1.)         
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/public/home/wangdg/.whomhsepws", line 95, in colorline_plot_binary
    a = np.ones(nseg, np.float) * alpha                                                                  
                      ^^^^^^^^
File "/public/home/wangdg/anaconda/ENTER/lib/python3.11/site-packages/numpy/__init__.py", line 324, in __getattr__
    raise AttributeError(__former_attrs__)
AttributeError: module 'numpy' has no attribute 'float'.
`np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'cfloat'?
-->> (10) Written PBAND_ELEMENTS_DW.jpg File!


页: [1]
查看完整版本: vaspkit215元素权重投影能带画图功能报错,无法自动生成图片