|
17 | 17 | import arc.rmgdb as rmgdb
|
18 | 18 | from arc import parser, plotter
|
19 | 19 | 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 |
21 | 21 | from arc.common import (extremum_list,
|
22 | 22 | get_angle_in_180_range,
|
23 | 23 | get_logger,
|
@@ -2193,8 +2193,6 @@ def parse_composite_geo(self,
|
2193 | 2193 | else:
|
2194 | 2194 | self.output[label]['isomorphism'] += 'composite did not pass isomorphism check; '
|
2195 | 2195 | success &= is_isomorphic
|
2196 |
| - if success: |
2197 |
| - self.check_rxn_e0_by_spc(label) |
2198 | 2196 | return success
|
2199 | 2197 | elif not self.species_dict[label].is_ts and self.trsh_ess_jobs:
|
2200 | 2198 | self.troubleshoot_negative_freq(label=label, job=job)
|
@@ -2431,20 +2429,22 @@ def check_rxn_e0_by_spc(self, label: str):
|
2431 | 2429 | """
|
2432 | 2430 | for rxn in self.rxn_list:
|
2433 | 2431 | 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 \ |
2435 | 2433 | and all([(species_has_sp(output_dict) and species_has_freq(output_dict))
|
2436 | 2434 | or self.species_dict[spc_label].yml_path is not None
|
2437 | 2435 | 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' |
2448 | 2448 | f'Switching TS.\n')
|
2449 | 2449 | self.switch_ts(rxn.ts_label)
|
2450 | 2450 |
|
|
0 commit comments