Skip to content

Very generic error message #16

@giovannipizzi

Description

@giovannipizzi

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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions