Skip to content

Commit a9df0fc

Browse files
committed
Check reaction E0 through check_ts()
1 parent 947aa90 commit a9df0fc

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

arc/scheduler.py

+14-14
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import arc.rmgdb as rmgdb
1818
from arc import parser, plotter
1919
from arc.checks.common import get_i_from_job_name, sum_time_delta
20-
from arc.checks.ts import check_imaginary_frequencies, check_ts, check_irc_species_and_rxn, compute_and_check_rxn_e0
20+
from arc.checks.ts import check_imaginary_frequencies, check_ts, check_irc_species_and_rxn
2121
from arc.common import (extremum_list,
2222
get_angle_in_180_range,
2323
get_logger,
@@ -2193,8 +2193,6 @@ def parse_composite_geo(self,
21932193
else:
21942194
self.output[label]['isomorphism'] += 'composite did not pass isomorphism check; '
21952195
success &= is_isomorphic
2196-
if success:
2197-
self.check_rxn_e0_by_spc(label)
21982196
return success
21992197
elif not self.species_dict[label].is_ts and self.trsh_ess_jobs:
22002198
self.troubleshoot_negative_freq(label=label, job=job)
@@ -2431,20 +2429,22 @@ def check_rxn_e0_by_spc(self, label: str):
24312429
"""
24322430
for rxn in self.rxn_list:
24332431
labels = rxn.reactants + rxn.products + [rxn.ts_label]
2434-
if label in labels and not rxn.ts_species.ts_checks['E0'] \
2432+
if label in labels and rxn.ts_species.ts_checks['E0'] is None \
24352433
and all([(species_has_sp(output_dict) and species_has_freq(output_dict))
24362434
or self.species_dict[spc_label].yml_path is not None
24372435
for spc_label, output_dict in self.output.items() if spc_label in labels]):
2438-
switch_ts = compute_and_check_rxn_e0(reaction=rxn,
2439-
species_dict=self.species_dict,
2440-
project_directory=self.project_directory,
2441-
kinetics_adapter=self.kinetics_adapter,
2442-
output=self.output,
2443-
sp_level=self.sp_level if not self.composite_method else self.composite_method,
2444-
freq_scale_factor=self.freq_scale_factor,
2445-
)
2446-
if switch_ts is True:
2447-
logger.info(f'TS status for reaction {rxn.label} is:\n{rxn.ts_species.ts_checks}.\n'
2436+
check_ts(reaction=rxn,
2437+
checks=['energy'],
2438+
species_dict=self.species_dict,
2439+
project_directory=self.project_directory,
2440+
kinetics_adapter=self.kinetics_adapter,
2441+
output=self.output,
2442+
sp_level=self.sp_level if not self.composite_method else self.composite_method,
2443+
freq_scale_factor=self.freq_scale_factor,
2444+
verbose=True,
2445+
)
2446+
if rxn.ts_species.ts_checks['E0'] is False:
2447+
logger.info(f'TS {rxn.ts_species.label} of reaction {rxn.label} did not pass the E0 check.\n'
24482448
f'Switching TS.\n')
24492449
self.switch_ts(rxn.ts_label)
24502450

0 commit comments

Comments
 (0)