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

Error for complicated material #133

Open
DFTmagnetism opened this issue Oct 15, 2023 · 4 comments
Open

Error for complicated material #133

DFTmagnetism opened this issue Oct 15, 2023 · 4 comments

Comments

@DFTmagnetism
Copy link

DFTmagnetism commented Oct 15, 2023

Dear Sir/Madam,

I found an error.
"File ~/anaconda3/lib/python3.11/site-packages/pyprocar/io/qe.py:196, in QEParser._parse_pdos(self, pdos_in_filename, dirname)
193 with open(pdos_in_filename, "r") as f:
194 pdos_in = f.read()
--> 196 self.pdos_prefix = re.findall("filpdos\s*=\s*'(.)'", pdos_in)[0]
197 self.proj_prefix = re.findall("filproj\s
=\s*'(.*)'", pdos_in)[0]
199 # Parsing total density of states

IndexError: list index out of range
"

I used:
atoms=[0]
orbitals=[0]
spins=[0,1]

pyprocar.bandsplot(
code='qe',
mode='scatter',
atoms=atoms,

            orbitals=orbitals,
            spins=spins,
            fermi_color='red',  # Fermi line color
            fermi_linestyle='--',  # Fermi line linestyle
            #fermi_linewidth=2.0,  # Fermi line linewidth
            #linewidth=0.5,
            dirname="./")

For Fe, as example that you provided, it is working pretty well. I have 40 atoms in scf.in file.
Could you please tell me how can I solve this error?

Best regards,
Amir

@lllangWV
Copy link
Collaborator

Hey Amir,

so the error comes from parsing the 'filpdos' variable from the kpdos.in file. Can you show me your kpdos.in file?

Logan Lang

@DFTmagnetism
Copy link
Author

Hey Logan ,

Many thanks for your response.
This is the kpdos.in file:

&projwfc
outdir='./bak'
prefix='MnCP3'
DeltaE=0.05
kresolveddos=.true.
filproj='feproj.k'
!savesigma=.true.
/

Best regards,
Amir

@lllangWV
Copy link
Collaborator

In the error report, it is trying to parse the density of state information, even though this is a band structure calculation. This will happen if there is a file 'pdos.in' in your calculation directory. What are all your files in your bands calculation directory?

@DFTmagnetism
Copy link
Author

DFTmagnetism commented Oct 17, 2023

Thank you very much! When I removed the pdos.in file, it worked.

Best regards,
Amir

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