Révision 1a66fb88
b/modules/calculation.py | ||
---|---|---|
130 | 130 |
continue |
131 | 131 |
if code == 'cp2k': |
132 | 132 |
out_file_list = glob(f"{run_type}/{conf}/*.out") |
133 |
if len(out_file_list) == 0: |
|
134 |
unfinished_calcs.append(conf) |
|
135 |
elif len(out_file_list) > 1: |
|
133 |
restart_file_list = glob(f"{run_type}/{conf}/*-1.restart") |
|
134 |
if len(out_file_list) == 0 or len(restart_file_list) == 0: |
|
135 |
unfinished_calcs.append(conf) # TODO specify separetely out and |
|
136 |
# TODO restart |
|
137 |
elif len(out_file_list) > 1 or len(restart_file_list) > 1: |
|
136 | 138 |
warn_msg = f'There is more than one file matching the {code} ' \ |
137 |
f'pattern for optimized geometry (*.out) in ' \ |
|
138 |
f'{conf}: {out_file_list}. Skipping directory.' |
|
139 |
f'pattern for finished calculation (*.out / ' \ |
|
140 |
f'*-1.restart) in {run_type}/{conf}: ' \ |
|
141 |
f'{out_file_list, restart_file_list}. ' \ |
|
142 |
f'Skipping directory.' |
|
139 | 143 |
logger.warning(warn_msg) |
140 | 144 |
unfinished_calcs.append(conf) |
141 | 145 |
else: |
Formats disponibles : Unified diff