adjusted rng_seed type in rotation
adjusted NotImplemented error return in orientation
This commit is contained in:
parent
3df411469b
commit
fc8cd6322c
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue