Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

Commit 9d0041b

Browse files
committed
Compatability for cupy
1 parent 3f82d29 commit 9d0041b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tike/zernike.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def basis(size: int, degree: int) -> np.array:
9797
"""
9898
endpoint = 1.0 - 1.0 / (2 * size)
9999
x = np.linspace(-endpoint, endpoint, size, endpoint=True)
100-
coords = np.meshgrid(x, x, indexing='ij')
100+
coords = np.stack(np.meshgrid(x, x, indexing='ij'), axis=0)
101101
radius = np.linalg.norm(coords, axis=0)
102102
theta = np.arctan2(coords[0], coords[1])
103103

0 commit comments

Comments
 (0)