Skip to content

Commit

Permalink
Minor improvements for generation of dataset of reaction profiles. (#359
Browse files Browse the repository at this point in the history
)

* tight criteria

* csv output

* single point refinement bool

* bug #358

* Revert "csv output"

This reverts commit 1f4c6e0.

* Revert "tight criteria"

This reverts commit 675b82e.

* template

* update changelog and readme

* parentheses

* provisional patch

---------

Co-authored-by: t-young31 <[email protected]>
  • Loading branch information
javialra97 and t-young31 authored Nov 5, 2024
1 parent 8284a7c commit 140c60b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
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

0 comments on commit 140c60b

Please sign in to comment.