-
Notifications
You must be signed in to change notification settings - Fork 34
one index screening #211
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
one index screening #211
Conversation
|
hi, the following is a notebook testing all of the evaluation screenings with |
fixes previous commit messages: changed `evaluate_basis_mask(`) to `evaluate_contraction_mask()`. sorry for the earlier mistake in commit messages, everything is fine now.
Cutoff R is evaluated for each primitive in each contraction of the shell and the max cutoff R is returned. This fix the problem of wide gaussians with near zero coefficients.
|
Hi @ohzde, I went through the branch code:
I will be merging this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds screening functionality to Gbasis for one-index evaluations to improve computational efficiency. It introduces screening based on distance cutoffs between contraction centers and evaluation points, with configurable tolerance parameters.
Key changes:
- Added screening functions to determine when basis function evaluations can be skipped based on distance cutoffs
- Updated evaluation functions to support optional screening with
screen_basisandtol_screenparameters - Modified existing tests to explicitly disable screening to maintain compatibility with reference values
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| gbasis/screening.py | Added new screening functions including primitive cutoff radius computation and point masking |
| gbasis/evals/eval.py | Modified basis evaluation to support optional screening with distance-based cutoffs |
| gbasis/evals/density.py | Added screening parameters to density evaluation function |
| tests/test_screening.py | New comprehensive tests for screening functionality with various bond lengths and tolerances |
| tests/test_eval.py | Updated existing tests to explicitly disable screening for reference comparisons |
| tests/test_density.py | Updated density tests to disable screening for reference value validation |
| tests/test_density_direct.py | Updated direct density tests to disable screening for consistency |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <[email protected]>
|
Thanks @marco-2023 for these. Please let me know if anything is remaining, and if you want me to add the screening to the tutorial notebooks as well. |
|
Hi @ohzde, it would be nice to add an "example" notebook using screening. It would be awesome if you could start it on a different PR. |
PaulWAyers
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR adds a screening feature to Gbasis for cases involving one contractions. It adds screening for all evaluations (
eval.py,eval_deriv.py,density.py, andstress_tensor.py) via thetol_screenparameter, and the screening can be turned on or off with thescreen_basisparameter. A new function,evaluate_contraction_mask(), has been added to the screening module for this purpose.Checklist
Type of Changes
Related
to resolve #121, related to #191