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

Testing with latest pyscf #156

Merged
merged 12 commits into from
Apr 17, 2024
Merged

Testing with latest pyscf #156

merged 12 commits into from
Apr 17, 2024

Conversation

basilib
Copy link
Contributor

@basilib basilib commented Feb 29, 2024

Some changes to maintain compatibility with the latest pyscf.

@@ -21,9 +21,9 @@

def DMET(mf, *args, **kwargs):
"""Determine restricted or unrestricted by inspection of mean-field object"""
if isinstance(mf, pyscf.scf.uhf.UHF):
if isinstance(mf, pyscf.scf.uhf.UHF) or isinstance(mf, pyscf.pbc.scf.uhf.UHF) or isinstance(mf, pyscf.pbc.scf.kuhf.KUHF):
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI, isinstance accepts a tuple of possible classes as a second argument

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, I didn't know that. Thanks!

Copy link

codecov bot commented Apr 12, 2024

Codecov Report

Attention: Patch coverage is 0% with 9 lines in your changes are missing coverage. Please review.

Project coverage is 0.00%. Comparing base (cddd8d0) to head (04c3ab8).
Report is 116 commits behind head on master.

Files Patch % Lines
vayesta/dmet/__init__.py 0.00% 2 Missing ⚠️
vayesta/edmet/__init__.py 0.00% 2 Missing ⚠️
vayesta/ewf/__init__.py 0.00% 2 Missing ⚠️
vayesta/lattmod/latt.py 0.00% 2 Missing ⚠️
vayesta/core/qemb/qemb.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           master    #156      +/-   ##
=========================================
- Coverage    0.41%   0.00%   -0.42%     
=========================================
  Files         152     156       +4     
  Lines       20195   20797     +602     
  Branches     3353       0    -3353     
=========================================
- Hits           83       0      -83     
- Misses      20078   20797     +719     
+ Partials       34       0      -34     

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

@basilib basilib requested a review from ghb24 April 16, 2024 17:18
@ghb24
Copy link
Contributor

ghb24 commented Apr 16, 2024

Looks good to me - merge when ready.

@basilib basilib merged commit 7023754 into master Apr 17, 2024
6 checks passed
@basilib basilib mentioned this pull request Apr 17, 2024
@basilib basilib deleted the Testing-with-latest-pyscf branch August 28, 2024 13:42
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