Skip to content

Commit

Permalink
f!
Browse files Browse the repository at this point in the history
  • Loading branch information
JintaoWu98 committed Nov 2, 2024
1 parent 955311e commit 281fa05
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions arc/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,11 +559,9 @@ def schedule_jobs(self):
if successful_server_termination:
troubleshooting_conformer = self.parse_conformer(job=job, label=label, i=i)
if 'conf_opt' in job_name and self.job_types['conf_sp'] and not troubleshooting_conformer:
self.run_job(label=label,
xyz=self.species_dict[label].conformers[i],
level_of_theory=self.conformer_sp_level,
job_type='conf_sp',
conformer=i)
self.run_sp_job(label=label,

Check warning on line 562 in arc/scheduler.py

View check run for this annotation

Codecov / codecov/patch

arc/scheduler.py#L562

Added line #L562 was not covered by tests
level=self.conformer_sp_level,
conformer=i)
if troubleshooting_conformer:
break
# Just terminated a conformer job.
Expand Down Expand Up @@ -1269,6 +1267,7 @@ def run_freq_job(self, label):
def run_sp_job(self,
label: str,
level: Optional[Level] = None,
conformer: Optional[int] = None,
):
"""
Spawn a single point job using 'final_xyz' for species ot TS 'label'.
Expand All @@ -1277,9 +1276,17 @@ def run_sp_job(self,
Args:
label (str): The species label.
level (Level): An alternative level of theory to run at. If ``None``, self.sp_level will be used.
conformer (int): The conformer number.
"""
level = level or self.sp_level

if self.job_types['conf_sp'] and conformer is not None:
self.run_job(label=label,

Check warning on line 1284 in arc/scheduler.py

View check run for this annotation

Codecov / codecov/patch

arc/scheduler.py#L1284

Added line #L1284 was not covered by tests
xyz=self.species_dict[label].conformers[conformer],
level_of_theory=self.conformer_sp_level,
job_type='conf_sp',
conformer=conformer)
return

Check warning on line 1289 in arc/scheduler.py

View check run for this annotation

Codecov / codecov/patch

arc/scheduler.py#L1289

Added line #L1289 was not covered by tests
# determine_occ(xyz=self.xyz, charge=self.charge)
if level == self.opt_level and not self.composite_method \
and not (level.software == 'xtb' and self.species_dict[label].is_ts) \
Expand Down

0 comments on commit 281fa05

Please sign in to comment.