Skip to content

Commit

Permalink
Fixes LFPy's example_MEA.py
Browse files Browse the repository at this point in the history
  • Loading branch information
espenhgn committed Apr 1, 2022
1 parent f739ae1 commit 239f175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lfpykit/lfpcalc.py
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ def _omega(a_z):
dL2 = dx2 + dy2
# avoid denominator approaching 0
inds = (dL2 + dz2) < (r_limit[rootinds] * r_limit[rootinds])
dL2[inds] = r_limit[inds] * r_limit[inds] - dz2[inds]
dL2[inds] = r_limit[rootinds][inds] * r_limit[rootinds][inds] - dz2[inds]

def _omega(dz):
return 1 / np.sqrt(dL2 + dz * dz)
Expand Down

0 comments on commit 239f175

Please sign in to comment.