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

Validation error with Hubbard U with Wannier functions as projectors #46

Open
LamaKing opened this issue Mar 8, 2024 · 2 comments
Open

Comments

@LamaKing
Copy link

LamaKing commented Mar 8, 2024

Hi all,
I was trying to read the result of a SCF calculation (with QE 7.2) with the Hubbard U applied to the Wannier orbitals obtained with the PoorManWannier (pmw.x) utility.

When calling the .to_dict() function I get the following error:

XMLSchemaValidationError: failed validating 'wf' with XsdEnumerationFacets(['atomic', 'ortho-atomic', 'norm-atomic', 'pseudo', 'file']):
Reason: value must be one of ['atomic', 'ortho-atomic', 'norm-atomic', 'pseudo', 'file']

Am I doing something wrong here? The option 'wf' seem to be missing from the allowed values.

Thanks for the nice package btw!

Best,
Andrea

@pietrodelugas
Copy link
Member

pietrodelugas commented Mar 11, 2024

You are not doing anything wrong. The "wannier" option has been overlooked in the definition of the schema and the validation fail.
there are 2 actions needed

  1. one to fix the schema
  2. to allow a 'lax' validation to be used by to_dict and similar methods

Option 2 should actually already done, so for the moment on, until the schema is updated, use to_dict method passing the validation='lax' argument.

@LamaKing
Copy link
Author

If I understand correctly, the problem is in the schema definition itself, which is in the repository qeschemas and not here, right?

With the lax validation no error is produced now. Thank you again for your help.

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