Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor improvements for generation of dataset of reaction profiles. #359

Merged
merged 11 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,4 @@ If **autodE** is used in a publication please consider citing the [paper](https:
- Daniel Hollas ([@danielhollas](https://github.com/danielhollas))
- Nils Heunemann ([@nilsheunemann](https://github.com/NilsHeunemann))
- Sijie Fu ([@sijiefu](https://github.com/SijieFu))
- Javier Alfonso ([@javialra97](https://github.com/javialra97))
7 changes: 6 additions & 1 deletion autode/reactions/reaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def __str__(self):
def calculate_reaction_profile(
self,
units: Union["Unit", str] = "kcal mol-1",
single_point_refinement: bool = True,
with_complexes: bool = False,
free_energy: bool = False,
enthalpy: bool = False,
Expand All @@ -132,6 +133,9 @@ def calculate_reaction_profile(
Keyword Arguments:
units (autode.units.Unit | str):

single_point_refinement (bool): Calculate single point at a
higher level of theory

with_complexes (bool): Calculate the lowest energy conformers
of the reactant and product complexes

Expand Down Expand Up @@ -161,7 +165,8 @@ def calculate(reaction):
reaction.calculate_complexes()
if free_energy or enthalpy:
reaction.calculate_thermochemical_cont()
reaction.calculate_single_points()
if single_point_refinement:
reaction.calculate_single_points()
reaction.print_output()
return None

Expand Down
4 changes: 3 additions & 1 deletion autode/wrappers/G09.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,9 @@ def coordinates_from(self, calc: "CalculationExecutor") -> Coordinates:
coords: List[List[float]] = []

for i, line in enumerate(calc.output.file_lines):
if "Input orientation" in line:
if "Input orientation" in line or (
"Standard orientation" in line and len(coords) == 0
):
coords.clear()
xyz_lines = calc.output.file_lines[
i + 5 : i + 5 + calc.molecule.n_atoms
Expand Down
4 changes: 2 additions & 2 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ Changelog

Functionality improvements
**************************
- ...
- Adds a boolean option for calculating single points refinements

Bug Fixes
*********
- ...
- Fixes coordinate extraction in some G16 output files


1.4.4
Expand Down
Loading