adjusted rng_seed type in rotation

adjusted NotImplemented error return in orientation
This commit is contained in:
Daniel Otto de Mentock 2022-02-02 12:16:57 +01:00
parent 3df411469b
commit fc8cd6322c
2 changed files with 3 additions and 3 deletions

View File

@ -148,7 +148,7 @@ class Orientation(Rotation,Crystal):
"""
if not isinstance(other, Orientation):
raise NotImplemented
return NotImplemented
matching_type = self.family == other.family and \
self.lattice == other.lattice and \
self.parameters == other.parameters

View File

@ -997,7 +997,7 @@ class Rotation:
N: int = 500,
degrees: bool = True,
fractions: bool = True,
rng_seed: Union[None, int, IntSequence] = None) -> 'Rotation':
rng_seed: Union[int, IntSequence] = None) -> 'Rotation':
"""
Sample discrete values from a binned orientation distribution function (ODF).
@ -1054,7 +1054,7 @@ class Rotation:
sigma: float,
N: int = 500,
degrees: bool = True,
rng_seed: Union[None, int, IntSequence] = None) -> 'Rotation':
rng_seed: Union[int, IntSequence] = None) -> 'Rotation':
"""
Calculate set of rotations with Gaussian distribution around center.