Skip to content

Commit

Permalink
Psi: Energy return error for Psi4 V11 fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgasmith committed Jun 12, 2018
1 parent 16ecfe5 commit e04da22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qcengine/psi_compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def run_psi4(input_data):

# Handle returns as Psi used to use numpy bit format.
if isinstance(output_data["return_value"], float):
output_data["return_result"]
output_data["return_result"] = output_data["return_value"]
else:
import numpy as np # Will have this if using Psi4
arr = np.fromstring(output_data["return_value"]["data"][0], dtype=np.double)
Expand Down Expand Up @@ -177,7 +177,7 @@ def run_psi4(input_data):

# Move several pieces up a level
if output_data["success"]:
output_data["provenance"]["memory"] = input_data["memory"]
output_data["provenance"]["memory"] = round(input_data["memory"] / (1024 ** 3), 3)
output_data["provenance"]["nthreads"] = input_data["nthreads"]
del output_data["memory"], input_data["nthreads"]

Expand Down

0 comments on commit e04da22

Please sign in to comment.