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

PhCalculation: add symmetry related exit codes #1017

Merged
merged 9 commits into from
Mar 27, 2024
Prev Previous commit
Next Next commit
Fix pre-commit
bastonero committed Mar 27, 2024
commit addb8eb457f158e93a8e216aa679e6c9e488f232
3 changes: 2 additions & 1 deletion src/aiida_quantumespresso/calculations/ph.py
Original file line number Diff line number Diff line change
@@ -73,7 +73,8 @@ def define(cls, spec):
spec.exit_code(350, 'ERROR_UNEXPECTED_PARSER_EXCEPTION',
message='The parser raised an unexpected exception: {exception}')
spec.exit_code(360, 'ERROR_INCOMPATIBLE_FFT_GRID',
message='The FFT grid is incompatible with the detected symmetries. Try using the lattice-specific `ibrav` != 0 in the parent `pw.x` calculation.')
message='The FFT grid is incompatible with the detected symmetries. Try using the lattice-specific '
'`ibrav` != 0 in the parent `pw.x` calculation.')
spec.exit_code(361, 'ERROR_WRONG_REPRESENTATION',
message=('The representation found seems to be wrong according to the detected symmetries. '
'Try using the correct ibrav.'))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one too please ^^

Suggested change
'Try using the correct ibrav.'))
'Try using the lattice-specific `ibrav` != 0 in the parent `pw.x` calculation.'))


Unchanged files with check annotations Beta

hubbard_structure = HubbardStructureData.from_structure(structure)
if is_intersite_hubbard(orig_structure.hubbard):
raise NotImplementedError('Intersite Hubbard parameters are not yet supported.')

Check failure on line 49 in src/aiida_quantumespresso/calculations/functions/seekpath_structure_analysis.py

GitHub Actions / tests (3.8)

Intersite Hubbard parameters are not yet supported.

Check failure on line 49 in src/aiida_quantumespresso/calculations/functions/seekpath_structure_analysis.py

GitHub Actions / tests (3.9)

Intersite Hubbard parameters are not yet supported.

Check failure on line 49 in src/aiida_quantumespresso/calculations/functions/seekpath_structure_analysis.py

GitHub Actions / tests (3.10)

Intersite Hubbard parameters are not yet supported.

Check failure on line 49 in src/aiida_quantumespresso/calculations/functions/seekpath_structure_analysis.py

GitHub Actions / tests (3.11)

Intersite Hubbard parameters are not yet supported.
for parameter in orig_structure.hubbard.parameters:
hubbard_structure.initialize_onsites_hubbard(