@@ -360,7 +360,7 @@ def exact_hessian(self, element_number_list, total_charge, positions):
360360 )
361361 self .Model_hess = exact_hess_np
362362
363- def single_point (self , file_directory , element_number_list , iter_index , electric_charge_and_multiplicity , geom_num_list = None ):
363+ def single_point (self , file_directory , element_number_list , iter_index , electric_charge_and_multiplicity , method = "" , geom_num_list = None ):
364364 """
365365 Calculate single point energy and gradient.
366366
@@ -400,7 +400,7 @@ def single_point(self, file_directory, element_number_list, iter_index, electric
400400 total_charge = int (electric_charge_and_multiplicity [0 ])
401401
402402 for num , input_file in enumerate (file_list ):
403- try :
403+ if True :
404404 if geom_num_list is None and xyz2list is not None :
405405 tmp_positions , _ , electric_charge_and_multiplicity = xyz2list (input_file , electric_charge_and_multiplicity )
406406 else :
@@ -444,12 +444,12 @@ def single_point(self, file_directory, element_number_list, iter_index, electric
444444 elif iter_index % self .FC_COUNT == 0 or self .hessian_flag :
445445 self .exact_hessian (element_number_list , total_charge , positions )
446446
447- except Exception as error :
448- print (error )
449- print ("This molecule could not be optimized." )
450- print ("Input file: " , file_list , "\n " )
451- finish_frag = True
452- return np .array ([0 ]), np .array ([0 ]), positions , finish_frag
447+ # except Exception as error:
448+ # print(error)
449+ # print("This molecule could not be optimized.")
450+ # print("Input file: ", file_list, "\n")
451+ # finish_frag = True
452+ # return np.array([0]), np.array([0]), positions, finish_frag
453453
454454 return e , g , positions , finish_frag
455455
0 commit comments