Skip to content

Commit 22dd43c

Browse files
committed
f! linear
1 parent c7ebdff commit 22dd43c

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

arc/job/adapters/ts/linear.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,10 @@
1010
from arc.job.adapter import JobAdapter
1111
from arc.job.adapters.common import _initialize_adapter, ts_adapters_by_rmg_family
1212
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-
)
1613
from arc.plotter import save_geo
1714
from arc.species.converter import order_xyz_by_atom_map, zmat_to_xyz
1815
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
2017

2118
if TYPE_CHECKING:
2219
from arc.level import Level
@@ -61,7 +58,7 @@ class LinearAdapter(JobAdapter):
6158
job_num (int, optional): Used as the entry number in the database, as well as in ``job_name``.
6259
job_server_name (str, optional): Job's name on the server (e.g., 'a103').
6360
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.
6562
max_job_time (float, optional): The maximal allowed job time on the server in hours (can be fractional).
6663
reactions (List[ARCReaction], optional): Entries are ARCReaction instances, used for TS search methods.
6764
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',
315312
weight = get_rxn_weight(rxn) if use_weights else 0.5
316313
if weight is None:
317314
return None
318-
rmg_reactions = get_rmg_reactions_from_arc_reaction(arc_reaction=rxn) or list()
319315
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']
323318
if r_label_dict is None:
324319
continue
325320
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]:
404399
Returns:
405400
float: The reaction weight.
406401
"""
407-
reactants, products = rxn.get_reactants_and_products(arc=True, return_copies=False)
402+
reactants, products = rxn.get_reactants_and_products(return_copies=False)
408403
r_e0 = [r.e0 for r in reactants]
409404
p_e0 = [p.e0 for p in products]
410405
ts_e0 = rxn.ts_species.e0

0 commit comments

Comments
 (0)