Skip to content

Commit ccdb65a

Browse files
committed
Return self.__class__ instead of explicit ReciprocalLatticeVector
1 parent 44825d5 commit ccdb65a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diffsims/crystallography/_diffracting_vector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def rotate_with_basis(self, rotation):
183183

184184
# rotate vectors
185185
vecs = ~rotation * self.to_miller()
186-
return ReciprocalLatticeVector(new_phase, xyz=vecs.data)
186+
return self.__class__(new_phase, xyz=vecs.data)
187187

188188
@property
189189
def intensity(self):

0 commit comments

Comments
 (0)