diff --git a/python/damask/_orientation.py b/python/damask/_orientation.py index 8a560e756..dff380dcf 100644 --- a/python/damask/_orientation.py +++ b/python/damask/_orientation.py @@ -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 diff --git a/python/damask/_rotation.py b/python/damask/_rotation.py index a04b20e62..361dba7c1 100644 --- a/python/damask/_rotation.py +++ b/python/damask/_rotation.py @@ -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.