Skip to content

Commit

Permalink
Cleaning up print statement and addition of more properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
muammar committed Dec 5, 2019
1 parent e6c00c2 commit ca4f623
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions qcengine/programs/orca.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ def build_input(

def parse_output(self, outfiles: Dict[str, str], input_model: "AtomicInput") -> "AtomicResult":
data = cclib.io.ccread(io.StringIO(outfiles))
print(dir(data))

properties = {}
extras = {}
Expand Down Expand Up @@ -387,14 +386,14 @@ def parse_output(self, outfiles: Dict[str, str], input_model: "AtomicInput") ->

# Process basis set data
# basis_set = root.find("molpro_uri:job/molpro_uri:molecule/molpro_uri:basisSet", name_space)
nbasis = data.nbasis
print(nbasis)
# angular_type = basis_set.attrib['angular'] # cartesian vs spherical
properties["calcinfo_nbasis"] = nbasis
properties["calcinfo_nbasis"] = data.nbasis
properties["calcinfo_nmo"] = data.nmo
properties["calcinfo_natom"] = data.natom
properties["scf_dipole_moment"] = data.moments[1].tolist()

# Grab the method from input
method = input_model.model.method.upper()
print(method)

# Determining the final energy
# Throws an error if the energy isn't found for the method specified from the input_model.
Expand Down

0 comments on commit ca4f623

Please sign in to comment.