File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 17
17
def commute_shift_rot (shifts , rots ):
18
18
"""
19
19
Rotate `shifts` points by `rots` ccw radians.
20
+
21
+ :param shifts: Array of shift points shaped (..., 2)
22
+ :param rots: Array of rotations (radians)
23
+ :returns: Array of rotated shift points shaped (..., 2)
20
24
"""
21
25
sx = shifts [:, 0 ]
22
26
sy = shifts [:, 1 ]
@@ -778,12 +782,6 @@ def __init__(
778
782
779
783
self .n_angles = n_angles
780
784
781
- # # XXX Will use polar for rotate
782
- # if not hasattr(self.alignment_basis, "rotate"):
783
- # raise RuntimeError(
784
- # f"{self.__class__.__name__}'s alignment_basis {self.alignment_basis} must provide a `rotate` method."
785
- # )
786
-
787
785
self .radius = radius if radius is not None else src .L // 16
788
786
789
787
if self .radius != 0 :
Original file line number Diff line number Diff line change @@ -668,7 +668,7 @@ def _im_translate(self, shifts):
668
668
# Note original stack shape and flatten stack
669
669
stack_shape = self .stack_shape
670
670
if self .n_images == 1 and n_shifts > 1 :
671
- # XXX special case, cleanup broadcasting later
671
+ # Handle the shift broadcast special case
672
672
stack_shape = n_shifts
673
673
im = self .stack_reshape (- 1 )._data
674
674
You can’t perform that action at this time.
0 commit comments