Skip to content

Commit 3015608

Browse files
committed
Fixed bug in naming of gradients, and units for E and dE
1 parent 8d1b3b0 commit 3015608

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

psi4_step/energy.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,11 @@ def get_input(self, calculation_type="energy", restart=None):
336336
variables["Eelec"] = Eelec
337337
variables["energy"] = Eelec
338338
try:
339-
variables["gradient"] = np.array(G).tolist()
340-
except Exception:
341-
pass
339+
variables["gradients"] = np.array(G).tolist()
340+
except Exception as e:
341+
print("Problem with gradients!")
342+
print(e)
343+
342344
variables["_method"] = "{method}"
343345
variables["_method_string"] = "{method_string}"
344346

psi4_step/psi4_metadata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1629,13 +1629,13 @@
16291629
"dimensionality": "scalar",
16301630
"property": "total energy#Psi4#{model}",
16311631
"type": "float",
1632-
"units": "kJ/mol",
1632+
"units": "E_h",
16331633
},
16341634
"gradients": {
16351635
"description": "The gradients",
16361636
"dimensionality": "[3, n_atoms]",
16371637
"type": "float",
1638-
"units": "kJ/mol/Å",
1638+
"units": "E_h/a_0",
16391639
},
16401640
"(T) CORRECTION ENERGY": {
16411641
"calculation": ["energy", "optimization", "thermochemistry", "vibrations"],

0 commit comments

Comments
 (0)