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

Updated the protocols to accomodate the suggestions proposed on issue #959 in aiidalab_qe. #1052

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/aiida_quantumespresso/workflows/pdos.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ def validate_nscf(value, _):
parameters = value['pw']['parameters'].get_dict()
if parameters.get('CONTROL', {}).get('calculation', 'scf') != 'nscf':
return '`CONTOL.calculation` in `nscf.pw.parameters` is not set to `nscf`.'
if parameters.get('SYSTEM', {}).get('occupations', None) != 'tetrahedra':
return '`SYSTEM.occupations` in `nscf.pw.parameters` is not set to `tetrahedra`.'
if not parameters.get('SYSTEM', {}).get('occupations', '').startswith('tetrahedra'):
return '`SYSTEM.occupations` in `nscf.pw.parameters` is not set to one of the `tetrahedra` options.'


def validate_dos(value, _):
Expand Down
6 changes: 3 additions & 3 deletions src/aiida_quantumespresso/workflows/protocols/pdos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ default_inputs:
calculation: nscf
restart_mode: from_scratch
SYSTEM:
occupations: tetrahedra
occupations: tetrahedra_opt
nosym: True
dos:
parameters:
DOS:
DeltaE: 0.02
DeltaE: 0.01
metadata:
options:
resources:
Expand All @@ -28,7 +28,7 @@ default_inputs:
projwfc:
parameters:
PROJWFC:
DeltaE: 0.02
DeltaE: 0.01
metadata:
options:
resources:
Expand Down
Loading