romerogroup / pyprocar

A Python library for electronic structure pre/post-processing
GNU General Public License v3.0
165 stars 72 forks source link

Pyprocar Version: 6.1.4, bandsplot not working #132

Closed nayraa78 closed 9 months ago

nayraa78 commented 9 months ago

Hello,

I've installed the last version of Pyprocar and tried to plot bands but I get the following error, I have no clue what it means.

Screenshot 2023-09-25 at 22 31 45 Screenshot 2023-09-25 at 22 32 12

Thanks for your time!

Nayra

lllangWV commented 9 months ago

Hey Nayra,

I am looking at the code now and it direct should have been defined before. A few lines before it checks if the poscar is direct or cartesian. What does your POSCAR look like?

Logan Lang

nayraa78 commented 9 months ago

Dear Logan,

Yes, the problem was in the POSCAR, it was an indentation error.

Before my POSCAR was:

Screenshot 2023-09-26 at 22 53 00

I had to remove the indentation on the lines 2 and 8. Now, the bandsplot work for the following POSCAR:

Screenshot 2023-09-26 at 22 50 17

Best,

Nayra