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

An error occurred while parsing DOS data in pre menu: ValueError: max() arg is an empty sequence #10

Open
LiFu1997 opened this issue Dec 27, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@LiFu1997
Copy link

Dear developer,

Fristly, thanks your very nice python scripy to predict the window and orbital in wannier.win file. But when I use this command want to get some informations in a new compoun: pyw90 pre dos --path .. -e -1 1 --rm-fermi --plot, there is an error like that:ValueError: max() arg is an empty sequence.

Can you help me how to reslove this problem?

Best regards

@Cloudiiink
Copy link
Owner

It would be helpful if you could provide the complete error message output (e.g. the location of the error function and file). With the information you have provided, I am unable to replicate your error.

@Cloudiiink
Copy link
Owner

After private conversation, the error arises from the incorrect configuration of LORBIT in the VASP input file. Consequently, the code is unable to locate and convert the pDOS information in vasprun.xml, resulting in an empty dataframe. Since the analysis of pDOS necessitates the decomposed orbital projection information in vasprun.xml, it should be imperative to set LORBIT=11 in the computation. So the code should include some additional checks and message hints as an improvement.

Furthermore, during the discussion, another typo error in the input parameters in README.md has already been rectified.

@Cloudiiink Cloudiiink changed the title ValueError: max() arg is an empty sequence An error occurred while parsing DOS data in pre menu: ValueError: max() arg is an empty sequence Jan 4, 2024
@Cloudiiink Cloudiiink added the enhancement New feature or request label Jan 4, 2024
@Cloudiiink Cloudiiink self-assigned this Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants