Skip to content

Commit

Permalink
remove example code from icsd unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz-Alexander-Kern committed May 31, 2023
1 parent 2d0b81c commit 19de003
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions elephant/test/test_icsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
iCSD testing suite
"""

import os
import numpy as np
import numpy.testing as nt
import quantities as pq
Expand Down Expand Up @@ -122,20 +121,6 @@ def potential_of_cylinder(z_j,
radius of disk source
sigma : float*pq.S/pq.m
conductivity of medium in units of S/m
Notes
-----
Sympy can't deal with eq. 11 in Pettersen et al 2006, J neurosci Meth,
so we numerically evaluate it in this function.
Tested with
# >>> from sympy import *
# >>> C_i, z_i, h, z_j, z_j, sigma, R = symbols('C_i z_i h z z_j sigma R')
# >>> C_i*integrate(1/(2*sigma)*(sqrt((z-z_j)**2 + R**2) -
# ... abs(z-z_j)), (z, z_i-h/2, z_i+h/2))
"""
try:
assert(z_j.units == z_i.units == R_i.units == h_i.units)
Expand Down

0 comments on commit 19de003

Please sign in to comment.