Skip to content

Commit

Permalink
Copy the frequency output file for a TS
Browse files Browse the repository at this point in the history
into the geometry folder
  • Loading branch information
alongd committed Mar 11, 2019
1 parent 56c2eab commit 177a813
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion arc/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ def process(self):
logging.info('\n\n')
species = self.species_dict[rxn.ts_label] # The TS
if 'ALL converged' in self.output[species.label]['status'] and rxn.check_ts():
self.copy_freq_output_for_ts(species.label)
success = True
rxn_list_for_kinetics_plots.append(rxn)
output_file_path = self._generate_arkane_species_file(species)
Expand Down Expand Up @@ -281,7 +282,7 @@ def process(self):

def clean_output_directory(self):
"""
A helper function to orginize the output directory
A helper function to organize the output directory
- remove redundant rotor.txt files (from kinetics jobs)
- move remaining rotor files to the rotor directory
- move the Arkane YAML file from the `species` directory to the base directory, and delete `species`
Expand Down Expand Up @@ -314,3 +315,11 @@ def clean_output_directory(self):
shutil.move(src=os.path.join(species_path, 'species', species_yaml_file),
dst=os.path.join(species_path, species_yaml_file))
shutil.rmtree(os.path.join(species_path, 'species'))

def copy_freq_output_for_ts(self, label):
"""
Copy the frequency job output file into the TS geometry folder
"""
calc_path = os.path.join(self.output[label]['freq'])
output_path = os.path.join(self.project_directory, 'output', 'rxns', label, 'geometry', 'frequency.out')
shutil.copyfile(calc_path, output_path)

0 comments on commit 177a813

Please sign in to comment.