-
Notifications
You must be signed in to change notification settings - Fork 3
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
Update/SOF-7508 update: fix passivation with coordinatation method #178
Conversation
return angle < tolerance | ||
|
||
@staticmethod | ||
def bonds_templates_are_similar(template1: np.ndarray, template2: np.ndarray, tolerance: float = 0.1) -> bool: |
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.
are_bonds_templates_similar
Should we create a separate class for coordination and put this functionality there
|
||
return element_templates | ||
|
||
def reconstruct_missing_bonds( |
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.
isolate reconstruct_missing_bonds_for_atom and have reconstruct_missing_bonds
for the whole material
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.
Ok. And this is where we'll pass bond templates distinguished by element
from pydantic import BaseModel, Field | ||
|
||
from mat3ra.made.material import Material | ||
from mat3ra.made.tools.analyze import get_nearest_neighbors_vectors |
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.
Should be part of this file
@@ -0,0 +1,195 @@ | |||
from typing import Dict, List | |||
|
|||
import numpy as np |
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.
Let's convert to namespace
@@ -492,6 +492,99 @@ | |||
"isUpdated": True, | |||
} | |||
|
|||
GRAPHENE_ZIGZAG_NANORIBBON_PASSIVATED = { |
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.
Nit: we can put this to Standata and import here - will be easier to visualize, etc.
No description provided.