|
10 | 10 | from arc.job.adapter import JobAdapter |
11 | 11 | from arc.job.adapters.common import _initialize_adapter, ts_adapters_by_rmg_family |
12 | 12 | from arc.job.factory import register_job_adapter |
13 | | -from arc.mapping.engine import (get_atom_indices_of_labeled_atoms_in_an_rmg_reaction, |
14 | | - get_rmg_reactions_from_arc_reaction, |
15 | | - ) |
16 | 13 | from arc.plotter import save_geo |
17 | 14 | from arc.species.converter import order_xyz_by_atom_map, zmat_to_xyz |
18 | 15 | from arc.species.species import ARCSpecies, TSGuess, colliding_atoms |
19 | | -from arc.species.zmat import check_ordered_zmats, get_atom_order, update_zmat_by_xyz, xyz_to_zmat |
| 16 | +from arc.species.zmat import check_ordered_zmats, update_zmat_by_xyz, xyz_to_zmat |
20 | 17 |
|
21 | 18 | if TYPE_CHECKING: |
22 | 19 | from arc.level import Level |
@@ -61,7 +58,7 @@ class LinearAdapter(JobAdapter): |
61 | 58 | job_num (int, optional): Used as the entry number in the database, as well as in ``job_name``. |
62 | 59 | job_server_name (str, optional): Job's name on the server (e.g., 'a103'). |
63 | 60 | job_status (list, optional): The job's server and ESS statuses. |
64 | | - level (Level, optionnal): The level of theory to use. |
| 61 | + level (Level, optional): The level of theory to use. |
65 | 62 | max_job_time (float, optional): The maximal allowed job time on the server in hours (can be fractional). |
66 | 63 | reactions (List[ARCReaction], optional): Entries are ARCReaction instances, used for TS search methods. |
67 | 64 | rotor_index (int, optional): The 0-indexed rotor number (key) in the species.rotors_dict dictionary. |
@@ -315,11 +312,9 @@ def interpolate_isomerization(rxn: 'ARCReaction', |
315 | 312 | weight = get_rxn_weight(rxn) if use_weights else 0.5 |
316 | 313 | if weight is None: |
317 | 314 | return None |
318 | | - rmg_reactions = get_rmg_reactions_from_arc_reaction(arc_reaction=rxn) or list() |
319 | 315 | ts_xyzs = list() |
320 | | - for rmg_reaction in rmg_reactions: |
321 | | - r_label_dict = get_atom_indices_of_labeled_atoms_in_an_rmg_reaction(arc_reaction=rxn, |
322 | | - rmg_reaction=rmg_reaction)[0] |
| 316 | + for product_dict in rxn.product_dicts: |
| 317 | + r_label_dict = product_dict['r_label_map'] |
323 | 318 | if r_label_dict is None: |
324 | 319 | continue |
325 | 320 | expected_breaking_bonds, expected_forming_bonds = rxn.get_expected_changing_bonds(r_label_dict=r_label_dict) |
@@ -404,7 +399,7 @@ def get_rxn_weight(rxn: 'ARCReaction') -> Optional[float]: |
404 | 399 | Returns: |
405 | 400 | float: The reaction weight. |
406 | 401 | """ |
407 | | - reactants, products = rxn.get_reactants_and_products(arc=True, return_copies=False) |
| 402 | + reactants, products = rxn.get_reactants_and_products(return_copies=False) |
408 | 403 | r_e0 = [r.e0 for r in reactants] |
409 | 404 | p_e0 = [p.e0 for p in products] |
410 | 405 | ts_e0 = rxn.ts_species.e0 |
|
0 commit comments