Skip to content

Commit eda585c

Browse files
committed
more cleanup
1 parent 4a48bbe commit eda585c

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/aspire/image/image.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ def filter(self, filter):
638638
original_stack_shape
639639
)
640640

641-
def rotate(self, theta, method="fastrotate", mask=1, **kwargs):
641+
def rotate(self, theta, method="scipy", mask=1, **kwargs):
642642
"""
643643
Return `Image` rotated by `theta` radians using `method`.
644644
@@ -654,6 +654,7 @@ def rotate(self, theta, method="fastrotate", mask=1, **kwargs):
654654
Array mask will be applied via elementwise multiplication.
655655
`None` disables masking.
656656
:param method: Optionally specify a rotation method.
657+
Defaults to `scipy`.
657658
:return: `Image` containing rotated image data.
658659
"""
659660

src/aspire/image/rotation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def _rot180(img):
125125

126126

127127
def _rot270(img):
128-
"""Rotate image array by 90 degrees."""
128+
"""Rotate image array by 270 degrees."""
129129
# stack broadcast of fliplr(img.T)
130130
return xp.flip(xp.swapaxes(img, -1, -2), axis=-1)
131131

@@ -200,7 +200,8 @@ def fastrotate(images, theta, M=None):
200200

201201

202202
def sp_rotate(img, theta, **kwargs):
203-
"""Utility wrapper to form a ASPIRE compatible call to Scipy's image rotation.
203+
"""
204+
Utility wrapper to form a ASPIRE compatible call to Scipy's image rotation.
204205
205206
Converts `theta` from radian to degrees.
206207
Defines stack/image axes and reshape behavior.

0 commit comments

Comments
 (0)