QijingZheng / pyband

band plot using python matplotlib
154 stars 93 forks source link

pyband not working #2

Open Rawatashima opened 6 years ago

Rawatashima commented 6 years ago

I am getting this error while busing the pyband to plot the bandstructures: File "/home/pyband.py", line 434, in kpath, bands, efermi, kpt_bounds = get_bandInfo(opts.filename) File "/home/pyband.py", line 113, in get_bandInfo kpt_path = np.linalg.norm(np.dot(vkpt_diff, B), axis=1) TypeError: norm() got an unexpected keyword argument 'axis'

QijingZheng commented 6 years ago

The error message indicates that you may have an old numpy installed on you computer, you can get rid of this error by updating your numpy, e.g. using pip:

sudo pip install -U numpy

Rawatashima commented 6 years ago

Thanks alot Sir I was using numpy1.9.1 version , I will try with a latest verision.

On Wed, Apr 18, 2018 at 4:58 PM, Qijing Zheng notifications@github.com wrote:

The error message indicates that you may have an old numpy installed on you computer, you can get rid of this error by updating your numpy, e.g. using pip:

sudo pip install -U numpy

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/QijingZheng/pyband/issues/2#issuecomment-382355092, or mute the thread https://github.com/notifications/unsubscribe-auth/AktkXL9WZXSWYqVHHA1O1CIpv1DWp32vks5tpyNZgaJpZM4TZ3l0 .

--

Thanking you.

With regards.

Ashima Rawat, Ph.D. Student,

Institute of Nano Science and Technology,

Phase – 10, Sector – 64, Mohali,

Punjab - 160062

Phone: +91-9815403866

E-mail: ashima.ph16203@inst.ac.in , ashima.rawatphysics@gmail.com

deitydeng commented 6 years ago

Dear Dr.Zheng I got the following warning: Do you have any idea for that Thanks in advance Traceback (most recent call last): File "pyband", line 434, in kpath, bands, efermi, kpt_bounds = get_bandInfo(opts.filename) File "pyband", line 131, in get_bandInfo kpt_bounds = np.concatenate(([0.0,], kpt_path[np.isclose(xx, 0.0)], [kpt_path[-1],])) IndexError: boolean index did not match indexed array along dimension 0; dimension is 16 but corresponding boolean dimension is 15