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))
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))
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))