c4c62503da100cbf491a761998c04d5e0db42413,qcengine/programs/nwchem/harvester.py,,harvest_hessian,#Any#,663
Before Change
Hess file name has to be "nwchem.hess". (default)
raise NotImplementedError()
def extract_formatted_properties(psivars: PreservingDict) -> AtomicResultProperties:
Get named properties out of the general variables extracted out of the result file
After Change
// Change the "D[+-]" notation of Fortran output to "E[+-]" used by Python
hess_conv = hess.replace("D", "E")
// Parse all of the float values
hess_triu = [float(x) for x in hess_conv.strip().splitlines()]
// The value in the Hessian matrix is the upper triangle
// We first convert it to a 2D array
n = int(np.sqrt(8 * len(hess_triu) + 1) - 1) // 2 // Size of the 2D matrix
hess_arr = np.zeros((n, n))
hess_arr[np.triu_indices(n)] = hess_triu
// Symmetrize it
return hess_arr.T + hess_arr - np.diag(np.diag(hess_arr))
def extract_formatted_properties(psivars: PreservingDict) -> AtomicResultProperties:
Get named properties out of the general variables extracted out of the result file
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: MolSSI/QCEngine
Commit Name: c4c62503da100cbf491a761998c04d5e0db42413
Time: 2019-12-29
Author: ward.logan.t@gmail.com
File Name: qcengine/programs/nwchem/harvester.py
Class Name:
Method Name: harvest_hessian
Project Name: geomstats/geomstats
Commit Name: 120b9f6d5bb7c0c7dde5fb60cdb503dddaeb03a0
Time: 2020-11-16
Author: nicolas.guigui@inria.fr
File Name: geomstats/geometry/lie_algebra.py
Class Name: MatrixLieAlgebra
Method Name: orthonormal_basis
Project Name: drckf/paysage
Commit Name: f9dd1ba1fcff2fed44153fd75cbcf65e6ccee1af
Time: 2017-02-26
Author: charleskennethfisher@gmail.com
File Name: paysage/backends/pytorch_backend/nonlinearity.py
Class Name:
Method Name: acosh