def test_soma_volume(): with warnings.catch_warnings(record=True): # SomaSinglePoint ret = _nf.soma_volume(SIMPLE) assert_almost_equal(ret, 4.1887902047863905) # SomaCylinders ret = _nf.soma_volume(SWC_NRN) assert_almost_equal(ret, 0.010726068245337955) # SomaSimpleContour ret = _nf.soma_volume(NRN) assert_almost_equal(ret, 0.0033147000251481135) # SomaNeuromorphoThreePointCylinders ret = _nf.soma_volume(SWC_NRN_3PT) assert_almost_equal(ret, 50.26548245743669)
def test_get_soma_volume(self): with warnings.catch_warnings(record=True): assert_almost_equal(_nrn.soma_volume(self.sec_nrn), 0.0033147000251481135)
def test_get_soma_volume(self): assert_almost_equal(_nrn.soma_volume(self.sec_nrn), get('soma_volumes', self.ref_nrn)[0])