diff --git a/src/py/mat3ra/made/material.py b/src/py/mat3ra/made/material.py index 1a5d0162..cdc13971 100644 --- a/src/py/mat3ra/made/material.py +++ b/src/py/mat3ra/made/material.py @@ -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