-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PyscfCalculation
: Make valid keys in parameters
easy to modify
The `validate_parameters` was recently updated to check for unknown keys being passed. Subclasses may want to add additional keys so the tuple of known keys is abstracted and returned by the `get_valid_parameter_keys` classmethod. The tuple of supported keys is now made complete such that the `validate_parameters` implementation can be cleaned up and move the validation of the keys to the beginning and a copy of the parameters is no longer needed since it no longer needs to pop known keys.
- Loading branch information
Showing
1 changed file
with
17 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters