Skip to content
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

Fix periodic PySCF calculations #74

Merged
merged 4 commits into from
Jul 27, 2024
Merged

Conversation

aizvorski
Copy link
Contributor

Fix for #73

Checks if the mol.lattice_vectors() method exists, rather than checking if the mol is an instance of pyscf.pbc.gto.Cell specifically

Copy link
Member

@awvwgk awvwgk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for sharing. Can you add a test case for the PBC case?

Copy link

codecov bot commented Jul 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 50.36%. Comparing base (3a50cbd) to head (5751cf8).
Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #74      +/-   ##
==========================================
+ Coverage   48.63%   50.36%   +1.73%     
==========================================
  Files          34       24      -10     
  Lines        3707     2440    -1267     
  Branches     1518      987     -531     
==========================================
- Hits         1803     1229     -574     
+ Misses       1207      870     -337     
+ Partials      697      341     -356     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

python/dftd3/test_pyscf.py Fixed Show fixed Hide fixed
@awvwgk awvwgk merged commit 3d9f9d2 into dftd3:main Jul 27, 2024
34 checks passed
aizvorski pushed a commit to aizvorski/dftd4 that referenced this pull request Aug 6, 2024
marvinfriede pushed a commit to dftd4/dftd4 that referenced this pull request Aug 7, 2024
* fix periodic pyscf calculations; ported fix from dftd3/simple-dftd3#74

* add test for pbc

---------

Co-authored-by: Alex Izvorski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants