Skip to content

Fix periodic PySCF calculations#74

Merged
awvwgk merged 4 commits intodftd3:mainfrom
aizvorski:fix-periodic-pyscf
Jul 27, 2024
Merged

Fix periodic PySCF calculations#74
awvwgk merged 4 commits intodftd3:mainfrom
aizvorski:fix-periodic-pyscf

Conversation

@aizvorski
Copy link
Copy Markdown
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
Copy Markdown
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?

@codecov
Copy link
Copy Markdown

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.

@awvwgk awvwgk merged commit 3d9f9d2 into dftd3:main Jul 27, 2024
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.

3 participants