Skip to content
This repository was archived by the owner on May 5, 2026. It is now read-only.

Commit 8c7a9f0

Browse files
authored
Add files via upload
1 parent 0f2cda8 commit 8c7a9f0

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

multioptpy/Calculator/ase_calculation_tools.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def calculate(self, file_directory, optimize_num, pre_total_velocity, config):
277277
hess_count = 0
278278

279279
for num, input_file in enumerate(file_list):
280-
if True:#try:
280+
try:
281281
print(f"Processing file: {input_file}")
282282
positions, element_list, electric_charge_and_multiplicity = xyz2list(input_file, None)
283283
positions = np.array(positions, dtype="float64")
@@ -324,11 +324,11 @@ def calculate(self, file_directory, optimize_num, pre_total_velocity, config):
324324
np.save(os.path.join(config.NEB_FOLDER_DIRECTORY, f"tmp_hessian_{hess_count}.npy"), exact_hess)
325325
hess_count += 1
326326

327-
#except Exception as error:
328-
# print(f"Error: {error}")
329-
# print("This molecule could not be optimized.")
330-
# if optimize_num != 0:
331-
# delete_pre_total_velocity.append(num)
327+
except Exception as error:
328+
print(f"Error: {error}")
329+
print("This molecule could not be optimized.")
330+
if optimize_num != 0:
331+
delete_pre_total_velocity.append(num)
332332

333333
try:
334334
if config.save_pict:

0 commit comments

Comments
 (0)