diff --git a/orix/vector/miller.py b/orix/vector/miller.py index 47102677..5303ed74 100644 --- a/orix/vector/miller.py +++ b/orix/vector/miller.py @@ -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