Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion deeptrack/optical/aberrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,9 @@ def get(
Z = 0 * rho

for n, m, coefficient in zip(n_list, m_list, coefficients):
if (n - abs(m)) % 2 or coefficient == 0:
if (n - abs(m)) % 2:
continue
if not (TORCH_AVAILABLE and torch.is_tensor(coefficient)) and coefficient == 0:
continue

R = 0 * rho
Expand Down