Structure.copy#

Structure.copy()[source]#

Returns a copy of the Structure instance.

Returns:
Structure

The copied Structure instance.

Examples

>>> import numpy as np
>>> structure_copy = structure.copy()
>>> np.allclose(structure_copy.atom_coordinate, structure.atom_coordinate)
True