Révision dbef6e98 modules/calculation.py
b/modules/calculation.py | ||
---|---|---|
5 | 5 |
|
6 | 6 |
|
7 | 7 |
def check_finished_calcs(run_type, code): |
8 |
from modules.utilities import _human_key |
|
8 | 9 |
"""Returns two lists of calculations finished normally and abnormally. |
9 | 10 |
|
10 | 11 |
@param run_type: The type of calculation to check. |
... | ... | |
18 | 19 |
|
19 | 20 |
finished_calcs = [] |
20 | 21 |
unfinished_calcs = [] |
21 |
for conf in os.listdir(run_type):
|
|
22 |
for conf in sorted(os.listdir(run_type), key=_human_key):
|
|
22 | 23 |
if not os.path.isdir(f'{run_type}/{conf}') or 'conf_' not in conf: |
23 | 24 |
continue |
24 | 25 |
if code == 'cp2k': |
Formats disponibles : Unified diff