We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1fff40 commit e2fe190Copy full SHA for e2fe190
nibabel/pointset.py
@@ -101,7 +101,11 @@ def dim(self) -> int:
101
"""The dimensionality of the space the coordinates are in"""
102
return self.coordinates.shape[1] - self.homogeneous
103
104
- def __rmatmul__(self, affine: np.ndarray) -> Self:
+ # Use __rmatmul__ to prefer to compose affines. Mypy does not like that
105
+ # this conflicts with ndarray.__matmul__. We will need some more feedback
106
+ # on how this plays out for type-checking or code suggestions before we
107
+ # can do better than ignore.
108
+ def __rmatmul__(self, affine: np.ndarray) -> Self: # type: ignore[misc]
109
"""Apply an affine transformation to the pointset
110
111
This will return a new pointset with an updated affine matrix only.
0 commit comments