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

Update/SOF-7508 update: fix passivation with coordinatation method #178

Merged
merged 81 commits into from
Dec 11, 2024

Conversation

VsevolodX
Copy link
Member

No description provided.

@VsevolodX VsevolodX changed the title Update/SOF-7508 Update/SOF-7508 update: fix passivation with coordinatation method Dec 3, 2024
return angle < tolerance

@staticmethod
def bonds_templates_are_similar(template1: np.ndarray, template2: np.ndarray, tolerance: float = 0.1) -> bool:
Copy link
Member

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(
Copy link
Member

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

Copy link
Member Author

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
Copy link
Member

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
Copy link
Member

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 = {
Copy link
Member

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.

@VsevolodX VsevolodX merged commit 3c6df09 into main Dec 11, 2024
9 checks passed
@VsevolodX VsevolodX deleted the update/SOF-7508 branch December 11, 2024 22:19
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.

2 participants