Skip to content

Commit

Permalink
allowing tetrahedra_opt option for nscf
Browse files Browse the repository at this point in the history
  • Loading branch information
AndresOrtegaGuerrero committed Jan 8, 2025
1 parent 57e7463 commit 3a8f942
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aiida_quantumespresso/workflows/pdos.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,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 parameters.get('SYSTEM', {}).get('occupations', None) not in ['tetrahedra', 'tetrahedra_opt']:
return '`SYSTEM.occupations` in `nscf.pw.parameters` is not set to `tetrahedra` or `tetrahedra_opt`.'


def validate_dos(value, _):
Expand Down

0 comments on commit 3a8f942

Please sign in to comment.