-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove dependency of params_shape on template_params (Issue #62)
What: 1. Turn params_shape into an abstract property 2. Use params_shape instead of template_params to compute nparams in BaseWavefunction 3. Use nparams in BaseWavefunction.load_cache instead of params.size 4. Move around tests Why: 1. Every time param_shape is called, template_params needs to be constructed. For most wavefunctions, this is not a big problem, but some wavefunctions actually need to do a fair bit to obtain a template (e.g. APr2G). The consistency between params_shape and template_params will be checked implicitly through assign_params, which checks that the given parameters has the same shape as the params_shape. Fix up BaseWavefunction.nparams
- Loading branch information
Showing
2 changed files
with
33 additions
and
24 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
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