Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion orix/vector/miller.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,10 @@ def from_min_dspacing(

def deepcopy(self) -> Miller:
"""Return a deepcopy of the instance."""
return deepcopy(self)
data = deepcopy(self.data) # Otherwise, data is a view
copied = self.__class__(xyz=data, phase=self.phase) # deepcopy is slow.
copied.coordinate_format = self.coordinate_format
return copied

def round(self, max_index: int = 20) -> Miller:
"""Round a set of index triplet (Miller) or quartet
Expand Down