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

Very generic error message #16

Open
giovannipizzi opened this issue May 18, 2022 · 0 comments
Open

Very generic error message #16

giovannipizzi opened this issue May 18, 2022 · 0 comments
Assignees

Comments

@giovannipizzi
Copy link
Member

Here, the error says cannot find Fermi energy:

if workchain0.process_class == PwBandsWorkChain:
fermi_energy = workchain0.outputs["scf_parameters"]["fermi_energy"]
else:
raise ValueError("Cannot find fermi energy")

In reality, it should say "The first parameter is not a PW Bands".
This will also help users debug (I had a user who swapped the two PKs and couldn't understand why)

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