|
36 | 36 | from arc.job.adapters.common import _initialize_adapter, ts_adapters_by_rmg_family
|
37 | 37 | from arc.job.factory import register_job_adapter
|
38 | 38 | from arc.plotter import save_geo
|
39 |
| -from arc.species.converter import compare_zmats, relocate_zmat_dummy_atoms_to_the_end, zmat_from_xyz, zmat_to_xyz, str_to_xyz, xyz_to_str |
| 39 | +from arc.species.converter import compare_zmats, relocate_zmat_dummy_atoms_to_the_end, zmat_from_xyz, zmat_to_xyz, str_to_xyz, xyz_to_str, str_to_str |
40 | 40 | from arc.mapping.engine import map_arc_rmg_species, map_two_species
|
41 | 41 | from arc.species.species import ARCSpecies, TSGuess, colliding_atoms
|
42 | 42 | from arc.species.zmat import get_parameter_from_atom_indices, remove_1st_atom, up_param
|
@@ -1097,28 +1097,30 @@ def h_abstraction(arc_reaction: 'ARCReaction',
|
1097 | 1097 | second_lowest = unique_sorted_values[1]
|
1098 | 1098 | print(f"The second lowest unique value in H21 is: {second_lowest}")
|
1099 | 1099 | cols_second_lowest = h_row[h_row == second_lowest].index.tolist()
|
1100 |
| - else: |
1101 |
| - crest_run = False |
1102 |
| - print("H21 does not have a second lowest unique value. Will not do CREST") |
1103 |
| - |
1104 |
| - if len(cols_second_lowest) == 1: |
1105 | 1100 |
|
1106 |
| - h_str = row_col_pairs[0][0] # 'H21' |
1107 |
| - print(f"h str = {h_str}") |
1108 |
| - b_str = row_col_pairs[0][1] # 'C14' |
1109 |
| - print(f"b str {b_str}") |
1110 |
| - a_str = cols_second_lowest[0] # 'C4' |
1111 |
| - print(f"a str {a_str}") |
| 1101 | + if len(cols_second_lowest) == 1: |
| 1102 | + |
| 1103 | + h_str = row_col_pairs[0][0] # 'H21' |
| 1104 | + print(f"h str = {h_str}") |
| 1105 | + b_str = row_col_pairs[0][1] # 'C14' |
| 1106 | + print(f"b str {b_str}") |
| 1107 | + a_str = cols_second_lowest[0] # 'C4' |
| 1108 | + print(f"a str {a_str}") |
1112 | 1109 |
|
1113 |
| - h = int(re.findall(r'\d+', h_str)[0]) |
1114 |
| - b = int(re.findall(r'\d+', b_str)[0]) |
1115 |
| - a = int(re.findall(r'\d+', a_str)[0]) |
| 1110 | + h = int(re.findall(r'\d+', h_str)[0]) |
| 1111 | + b = int(re.findall(r'\d+', b_str)[0]) |
| 1112 | + a = int(re.findall(r'\d+', a_str)[0]) |
1116 | 1113 |
|
1117 |
| - # log info a, b, h1, h2, b_atom, a_atom, h_atom, val_inc |
1118 |
| - logger.info(f'a: {a}, b: {b}, h: {h}') |
| 1114 | + # log info a, b, h1, h2, b_atom, a_atom, h_atom, val_inc |
| 1115 | + logger.info(f'a: {a}, b: {b}, h: {h}') |
| 1116 | + else: |
| 1117 | + crest_run = False |
| 1118 | + print(f"Received more than one result for second lowest: {cols_second_lowest}") |
1119 | 1119 | else:
|
1120 | 1120 | crest_run = False
|
1121 |
| - print(f"Received more than one result for second lowest: {cols_second_lowest}") |
| 1121 | + print("H21 does not have a second lowest unique value. Will not do CREST") |
| 1122 | + |
| 1123 | + |
1122 | 1124 |
|
1123 | 1125 | ####
|
1124 | 1126 |
|
|
0 commit comments