Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get compute program from InputSpecification instead of keywords for b… #303

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion qcengine/procedures/berny.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def compute(self, input_data: "OptimizationInput", config: "TaskConfig") -> "Opt
input_data = input_data.dict()
geom_qcng = input_data["initial_molecule"]
comput = {**input_data["input_specification"], "molecule": geom_qcng}
program = input_data["keywords"].pop("program")
program = comput["keywords"].pop("program")
trajectory = []
output_data = input_data.copy()
try:
Expand Down
2 changes: 1 addition & 1 deletion qcengine/tests/test_procedures.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def test_berny_stdout(input_data):

input_data["initial_molecule"] = qcng.get_molecule("water")
input_data["input_specification"]["model"] = {"method": "HF", "basis": "sto-3g"}
input_data["keywords"]["program"] = "psi4"
input_data["input_specification"]["keywords"] = {"program": "psi4"}

input_data = OptimizationInput(**input_data)

Expand Down