adjusted rng_seed type in rotation
adjusted NotImplemented error return in orientation
This commit is contained in:
parent
3df411469b
commit
fc8cd6322c
python/damask
|
@ -148,7 +148,7 @@ class Orientation(Rotation,Crystal):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if not isinstance(other, Orientation):
|
if not isinstance(other, Orientation):
|
||||||
raise NotImplemented
|
return NotImplemented
|
||||||
matching_type = self.family == other.family and \
|
matching_type = self.family == other.family and \
|
||||||
self.lattice == other.lattice and \
|
self.lattice == other.lattice and \
|
||||||
self.parameters == other.parameters
|
self.parameters == other.parameters
|
||||||
|
|
|
@ -997,7 +997,7 @@ class Rotation:
|
||||||
N: int = 500,
|
N: int = 500,
|
||||||
degrees: bool = True,
|
degrees: bool = True,
|
||||||
fractions: 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).
|
Sample discrete values from a binned orientation distribution function (ODF).
|
||||||
|
|
||||||
|
@ -1054,7 +1054,7 @@ class Rotation:
|
||||||
sigma: float,
|
sigma: float,
|
||||||
N: int = 500,
|
N: int = 500,
|
||||||
degrees: bool = True,
|
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.
|
Calculate set of rotations with Gaussian distribution around center.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue