extended slicing types, but have to ignore..!
This commit is contained in:
parent
afe2094c65
commit
634f9fd1f5
|
@ -529,7 +529,7 @@ class Orientation(Rotation,Crystal):
|
|||
s = self.broadcast_to(s_m).equivalent
|
||||
o = other.broadcast_to(s_o).equivalent
|
||||
|
||||
r_ = s[:,np.newaxis,...].misorientation(o[np.newaxis,:,...])
|
||||
r_ = s[:,np.newaxis,...].misorientation(o[np.newaxis,:,...]) # type: ignore[index]
|
||||
_r = ~r_
|
||||
|
||||
forward = r_.in_disorientation_FZ
|
||||
|
|
|
@ -112,7 +112,7 @@ class Rotation:
|
|||
|
||||
|
||||
def __getitem__(self,
|
||||
item: Union[Tuple[Union[None, int, slice, ellipsis]], int, bool, np.bool_, np.ndarray]):
|
||||
item: Union[Tuple[Union[None, int, slice]], int, bool, np.bool_, np.ndarray]):
|
||||
"""
|
||||
Return self[item].
|
||||
|
||||
|
|
Loading…
Reference in New Issue