Skip to content

Commit dbc05a9

Browse files
off by one error
1 parent 75908ab commit dbc05a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deeptrack/aberrations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def get(self, pupil, rho=None, theta=None, n=None, m=None, coefficient=None, **k
6363
continue
6464

6565
R = 0
66-
for k in range((n - np.abs(m)) // 2):
66+
for k in range((n - np.abs(m)) // 2 + 1):
6767
R += ((-1) ** k * np.math.factorial(n - k) / (np.math.factorial(k) *
6868
np.math.factorial((n - m) // 2 - k) * np.math.factorial((n + m) // 2 - k)) *
6969
rho**(n - 2*k))

0 commit comments

Comments
 (0)