You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the attached Gaussian .log file, there are lines such as following:
Excited State 1: 2.316-A 0.7744 eV 1601.13 nm f=0.0084 <S**2>=1.091
where the spin multiplicity in front of the symmetry (2.316-A) is a float, rather than a string such in other cases as "Singlet-A" or "Triplet-A"
In the pymatgen code, therefore, the GaussianOutput.read_excitation_energies() method will, for this line, obtain the following result:
"(2.316, 0.7744, 1601.13)"
instead of the desired result:
"(0.7744, 1601.13, 0.0084)" corresponding to (energie (eV), lambda (nm), oscillatory strength), respectively.
This is due to lines 1316 to 1318 of pymatgen.io.gaussian.py where the Excited state line is searched for the pattern of floats.
Expected Behavior
For the following line in the attached Gaussian .log file:
Excited State 1: 2.316-A 0.7744 eV 1601.13 nm f=0.0084 <S**2>=1.091
One should obtain "(0.7744, 1601.13, 0.0084)" corresponding to (energie (eV), lambda (nm), oscillatory strength), respectively.
Minimal example
frompymatgen.io.gaussianimportGaussianOutputclassTestGaussian16Output:
deftest_normal_termination_with_forces_and_frequencies(self, td_outputfile): # filepath to the attached fileassertos.path.exists(td_outputfile)
g16_output=GaussianOutput(filename=td_outputfile)
print(g16_output.read_excitation_energies())
Python version
3.10.8
Pymatgen version
2023.7.20
Operating system version
MacOS Sonoma 14.4.1
Current behavior
In the attached Gaussian .log file, there are lines such as following:
In the pymatgen code, therefore, the GaussianOutput.read_excitation_energies() method will, for this line, obtain the following result:
"(2.316, 0.7744, 1601.13)"
instead of the desired result:
"(0.7744, 1601.13, 0.0084)" corresponding to (energie (eV), lambda (nm), oscillatory strength), respectively.
This is due to lines 1316 to 1318 of pymatgen.io.gaussian.py where the Excited state line is searched for the pattern of floats.
Expected Behavior
For the following line in the attached Gaussian .log file:
One should obtain "(0.7744, 1601.13, 0.0084)" corresponding to (energie (eV), lambda (nm), oscillatory strength), respectively.
Minimal example
Relevant files to reproduce this bug
pop1_ketone_model_opt_radical_anion_r1s50_gas_run2.log
The text was updated successfully, but these errors were encountered: