コード例 #1
0
 def test_deltaS_calc(self):
     cell = DummyCell()
     cell.yend[0] = 5
     ds = lfpcalc._deltaS_calc(cell.xstart, cell.xend,
                               cell.ystart, cell.yend,
                               cell.zstart, cell.zend)
     np.testing.assert_equal(ds, np.sqrt(26))
コード例 #2
0
ファイル: test_lfpcalc.py プロジェクト: torbjone/LFPy
 def test_deltaS_calc(self):
     cell = TestCell()
     cell.yend[0] = 5
     ds = lfpcalc._deltaS_calc(cell.xstart, cell.xend,
                               cell.ystart, cell.yend,
                               cell.zstart, cell.zend)
     np.testing.assert_equal(ds, np.sqrt(26))
コード例 #3
0
 def test_deltaS_calc(self):
     cell = DummyCell(y=np.array([[0, 5]]))
     ds = lfpcalc._deltaS_calc(cell.x[:, 0], cell.x[:, -1], cell.y[:, 0],
                               cell.y[:, -1], cell.z[:, 0], cell.z[:, -1])
     np.testing.assert_equal(ds, np.sqrt(26))