Skip to content

Commit 100454b

Browse files
Merge branch 'main' into fix_interp
2 parents 31ddc9b + 464b47a commit 100454b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

aotools/functions/zernike.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ def zernikeRadialFunc(n, m, r):
9191
R += numpy.array(r**(n - 2 * i) * (((-1)**(i)) *
9292
math.factorial(n - i)) /
9393
(math.factorial(i) *
94-
math.factorial(int(0.5 * (n + m) - i)) *
95-
math.factorial(int(0.5 * (n - m) - i))),
94+
95+
math.factorial((n + m)//2 - i) *
96+
math.factorial((n - m)//2 - i)),
9697
dtype='float')
9798
return R
9899

0 commit comments

Comments
 (0)