VASPKIT论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: VASPKIT
查看: 272|回复: 0

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

[复制链接]

1

主题

1

帖子

5

积分

新手上路

Rank: 1

积分
5
发表于 2024-7-20 22:37:07 | 显示全部楼层 |阅读模式
========================= 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__[attr])
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__[attr])
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!


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|VASPKIT论坛 ( 陕ICP备2020017291号 )

GMT+8, 2024-11-30 13:38 , Processed in 0.073436 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表