Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial error using pyprocar.kpath #17

Closed
Nokimann opened this issue Jul 12, 2019 · 2 comments
Closed

Tutorial error using pyprocar.kpath #17

Nokimann opened this issue Jul 12, 2019 · 2 comments

Comments

@Nokimann
Copy link

My POSCAR:

azo
1.00000000000000
9.5670000000000002 0.0000000000000000 0.0000000000000000
-4.7835000000000001 8.2852650380099995 0.0000000000000000
0.0000000000000000 0.0000000000000000 40.0000000000000000
Mo S H C N O
18 35 10 13 2 2
Direct
...

If I tried pyprocar.kpath('POSCAR',40,True,'hpkot',1e-07,1e-05,-1.0)

Traceback (most recent call last):
File "", line 1, in
File "/home/noki/anaconda3/envs/procar/lib/python3.7/site-packages/pyprocar/scriptKpath.py", line 21, in kpath
atoms = np.array(POSCAR[5].split()).astype(np.int)
ValueError: invalid literal for int() with base 10: 'Mo'

It should change from 5 to 6 or not compatible for my POSCAR.

@uthpalaherath
Copy link
Member

Dear Nokimann,

Yes, this is an issue I need to resolve. Currently, it'll work if the "Mo S H C N O" line is omitted from the POSCAR. But I'll get it fixed and update the repo soon.

Best,
Uthpala

@uthpalaherath
Copy link
Member

This has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants