Skip to content

Commit 5d80e41

Browse files
committed
1. Fix TD-DFT in QCORR
1 parent fefe295 commit 5d80e41

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
conda install -y -c conda-forge xtb
5050
conda install -y -c conda-forge crest
5151
conda install pytorch torchvision torchaudio cpuonly -c pytorch
52-
pip install torchani
52+
pip install torchani==2.2.3
5353
# install the dependencies of AQME with pip
5454
pip install .
5555
# install and run pytest

aqme/qcorr_utils.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -473,24 +473,24 @@ def get_json_data(self, file, cclib_data):
473473
for i in reversed(range(0, len(outlines) - 30)):
474474
# For time dependent (TD) calculations
475475
if "E(TD-HF/TD-DFT)" in outlines[i]:
476-
td_e = float(line.strip().split()[-1])
476+
td_e = float(outlines[i].strip().split()[-1])
477477
cclib_data["properties"]["energy"][
478478
"TD energy"
479479
] = cclib.parser.utils.convertor(td_e, "hartree", "eV")
480480

481481
# For G4 calculations look for G4 energies (Gaussian16a bug prints G4(0 K) as DE(HF)) --Brian modified to work for G16c-where bug is fixed.
482-
elif line.strip().startswith("E(ZPE)="): # Overwrite DFT ZPE with G4 ZPE
483-
zero_point_corr = float(line.strip().split()[1])
484-
elif line.strip().startswith("G4(0 K)"):
485-
G4_energy = float(line.strip().split()[2])
482+
elif outlines[i].strip().startswith("E(ZPE)="): # Overwrite DFT ZPE with G4 ZPE
483+
zero_point_corr = float(outlines[i].strip().split()[1])
484+
elif outlines[i].strip().startswith("G4(0 K)"):
485+
G4_energy = float(outlines[i].strip().split()[2])
486486
G4_energy -= zero_point_corr # Remove G4 ZPE
487487
cclib_data["properties"]["energy"][
488488
"G4 energy"
489489
] = cclib.parser.utils.convertor(G4_energy, "hartree", "eV")
490490

491491
# For ONIOM calculations use the extrapolated value rather than SCF value
492-
elif "ONIOM: extrapolated energy" in line.strip():
493-
oniom_e = float(line.strip().split()[4])
492+
elif "ONIOM: extrapolated energy" in outlines[i].strip():
493+
oniom_e = float(outlines[i].strip().split()[4])
494494
cclib_data["properties"]["energy"][
495495
"ONIOM energy"
496496
] = cclib.parser.utils.convertor(oniom_e, "hartree", "eV")

aqme/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
J_TO_AU = 4.184 * 627.509541 * 1000.0 # UNIT CONVERSION
2424
T = 298.15
2525

26-
aqme_version = "1.5.2"
26+
aqme_version = "1.5.3"
2727
time_run = time.strftime("%Y/%m/%d %H:%M:%S", time.localtime())
2828
aqme_ref = f"AQME v {aqme_version}, Alegre-Requena, J. V.; Sowndarya, S.; Perez-Soto, R.; Alturaifi, T.; Paton, R. AQME: Automated Quantum Mechanical Environments for Researchers and Educators. Wiley Interdiscip. Rev. Comput. Mol. Sci. 2023, DOI: 10.1002/wcms.1663."
2929

docs/Misc/versions.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
Versions
55
========
66

7+
Version 1.5.3 [`url <https://github.com/jvalegre/aqme/releases/tag/1.5.3>`__]
8+
- Fixed bug in QCORR when analyzing TD-DFT, ONIOM and G4 calculations in Gaussian
9+
710
Version 1.5.2 [`url <https://github.com/jvalegre/aqme/releases/tag/1.5.2>`__]
811
- Fixed bug for using constraints with large molecules in CREST (related to long atom lists
912
in the .xcontrol.sample file that weren't compatible with subprocess.run())

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from setuptools import setup, find_packages
2-
version = "1.5.2"
2+
version = "1.5.3"
33
setup(
44
name="aqme",
55
packages=find_packages(exclude=["tests"]),

0 commit comments

Comments
 (0)