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.
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 <175728472+Copilot@users.noreply.github.com>
|
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. |
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