Skip to content

Commit

Permalink
dtype=2 in Molecule model
Browse files Browse the repository at this point in the history
  • Loading branch information
loriab committed Mar 7, 2019
1 parent 9054b45 commit 840eb60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qcelemental/models/molecule.py
Expand Up @@ -480,7 +480,7 @@ def from_data(cls, data, dtype=None, *, orient=False, **kwargs):
raise TypeError("Input type not understood, please supply the 'dtype' kwarg.")

if dtype in ["string", "psi4", "psi4+", "xyz", "xyz+"]:
input_dict = to_schema(from_string(data)["qm"], dtype=1)["molecule"]
input_dict = to_schema(from_string(data)["qm"], dtype=2)
elif dtype == "numpy":
data = np.asarray(data)
data = {
Expand All @@ -489,7 +489,7 @@ def from_data(cls, data, dtype=None, *, orient=False, **kwargs):
"units": kwargs.pop("units", "Angstrom"),
"fragment_separators": kwargs.pop("frags", [])
}
input_dict = to_schema(from_arrays(**data), dtype=1)["molecule"]
input_dict = to_schema(from_arrays(**data), dtype=2)
elif dtype == "json":
input_dict = json.loads(data)
elif dtype == "dict":
Expand Down

0 comments on commit 840eb60

Please sign in to comment.