Get compute program from InputSpecification instead of keywords for b… #303
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…erny optimizer
Description
Closes #302
Changelog description
Get qc program from QCInputSpecification keywords (contains keywords for the compute engine) instead of OptimizationInput keywords (keywords specific to the
berny
optimizer).Note:
From the tests here it looks like the idea to include the "program" with the keywords for the optimizer may have come from
Geometric
where this is more common given that the optimizer itself looks up the qc program it will use to drive the gradient computations. I'd still suggest changing the way parameters are passed to separate the qc computation from the keywords for the optimizer as I think this provides a cleaner separation at the QCElemental level for procedure input specification. However, consider this PR just a suggestion--no right answers here--though I feel my suggestion is cleaner. I did find myself confused when building an implementation ofcompute_procedure
into my own application due to what appeared to me to be mixing of keywords families.Status