-
Notifications
You must be signed in to change notification settings - Fork 11
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
Coop coordination #280
base: master
Are you sure you want to change the base?
Coop coordination #280
Conversation
Add an optional key to the dictionary input of COOP calculation that includes the coordination number to be considered for each of the two elements
from qmflows.parsers.xyzParser import readXYZ | ||
|
||
from nanoCAT.recipes import coordination_number |
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.
nanoCAT must be included in the library requirements at setup.py
@juliette1996 Could you please provide a description of what is the purpose of this PR? |
Codecov Report
@@ Coverage Diff @@
## master #280 +/- ##
==========================================
- Coverage 83.23% 82.84% -0.40%
==========================================
Files 23 23
Lines 1563 1574 +11
Branches 194 198 +4
==========================================
+ Hits 1301 1304 +3
- Misses 209 215 +6
- Partials 53 55 +2
Continue to review full report at Codecov.
|
element_2_index = [i for i, s in enumerate(mol) if element_2.lower() in s] | ||
|
||
# For the two selected elements, only the indices corresponding to a given coordination number | ||
else: |
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, you can also make nano-CAT
an optional dependency and then raise any potential ImportError
s whenever a code branch is reached that does require nano-CAT
:
from typing import Optional
try:
from nanoCAT import coordination_number
NANOCAT_EX: Optional[ImportError] = None
except ImportError as ex:
NANOCAT_EX = ex
def compute_overlap_and_atomic_orbitals(...):
if config["elements_coordination"] is None:
...
elif NANOCAT_EX is not None:
raise NANOCAT_EX
else:
coord = coordination_number(geometry)
...
Hi @juliette1996 is there any update in this PR? :) |
4e68969
to
6830e71
Compare
No description provided.