extended slicing types, but have to ignore..!

This commit is contained in:
Philip Eisenlohr 2023-10-04 10:30:25 -04:00
parent afe2094c65
commit 634f9fd1f5
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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].