Skip to content

Commit 3aceeac

Browse files
committed
Update protocol names
1 parent 45977bc commit 3aceeac

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Modules/aiida_ensemble.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"""Module for handling automated calculation via aiida-quantumespresso."""
33
from __future__ import annotations
44

5+
from typing import Literal
56
from copy import copy, deepcopy
67
import time
78
import sys
@@ -37,7 +38,7 @@ class AiiDAEnsemble(Ensemble):
3738
def compute_ensemble( # pylint: disable=arguments-renamed
3839
self,
3940
pw_code: str,
40-
protocol: str['fast', 'moderate', 'precise'] = 'moderate',
41+
protocol: Literal['fast', 'balanced', 'stringent'] = 'balanced',
4142
options: dict | None = None,
4243
overrides: dict | None = None,
4344
group_label: str | None = None,
@@ -51,7 +52,7 @@ def compute_ensemble( # pylint: disable=arguments-renamed
5152
Args:
5253
----
5354
pw_code: The string associated with the AiiDA code for `pw.x`
54-
protocol: The protocol to be used; available protocols are 'fast', 'moderate' and 'precise'
55+
protocol: The protocol to be used; available protocols are 'fast', 'balanced' and 'stringent'
5556
options: The options for the calculations, such as the resources, wall-time, etc.
5657
overrides: The overrides for the :func:`aiida_quantumespresso.workflows.pw.base.PwBaseWorkChain.get_builder_from_protocol`
5758
group_label: The group label where to add the submitted nodes for eventual future inspection

0 commit comments

Comments
 (0)