-
Notifications
You must be signed in to change notification settings - Fork 7
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
Conversation
vayesta/dmet/__init__.py
Outdated
@@ -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): |
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.
FYI, isinstance
accepts a tuple of possible classes as a second argument
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.
Oh, I didn't know that. Thanks!
Codecov ReportAttention: Patch coverage is
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. |
This reverts commit 51ba7c3.
Looks good to me - merge when ready. |
Some changes to maintain compatibility with the latest pyscf.