Skip to content

Commit

Permalink
update: add atom to material
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed Aug 15, 2024
1 parent 365bfd0 commit 312786a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/py/mat3ra/made/material.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,8 @@ def set_coordinates(self, coordinates: List[List[float]]) -> None:
new_basis = self.basis.copy()
new_basis.coordinates.values = coordinates
self.basis = new_basis

def add_atom(self, element: str, coordinate: List[float]) -> None:
new_basis = self.basis.copy()
new_basis.add_atom(element, coordinate)
self.basis = new_basis

0 comments on commit 312786a

Please sign in to comment.