From 8f96d1a11240a0a44a4158482c858992db06c2fb Mon Sep 17 00:00:00 2001 From: Mainak Jas Date: Thu, 5 Nov 2020 23:57:11 -0500 Subject: [PATCH] MAINT: _biophysics -> set_biophysics --- hnn_core/basket.py | 6 +++--- hnn_core/pyramidal.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hnn_core/basket.py b/hnn_core/basket.py index 933091e35..e65d4f49e 100644 --- a/hnn_core/basket.py +++ b/hnn_core/basket.py @@ -33,7 +33,7 @@ def __init__(self, gid, pos, cell_name='Basket'): self.shape_soma() self.synapses = dict() - def _biophysics(self): + def set_biophysics(self): self.soma.insert('hh2') def _get_soma_props(self, cell_name, pos): @@ -71,7 +71,7 @@ def __init__(self, gid=-1, pos=-1): self.celltype = 'L2_basket' self._synapse_create() - self._biophysics() + self.set_biophysics() self.sect_loc = dict(proximal=['soma'], distal=['soma']) @@ -84,5 +84,5 @@ def __init__(self, gid=-1, pos=-1): self.celltype = 'L5_basket' self._synapse_create() - self._biophysics() + self.set_biophysics() self.sect_loc = dict(proximal=['soma'], distal=[]) diff --git a/hnn_core/pyramidal.py b/hnn_core/pyramidal.py index a4f410ef0..973ba1d6a 100644 --- a/hnn_core/pyramidal.py +++ b/hnn_core/pyramidal.py @@ -86,7 +86,7 @@ def __init__(self, gid, pos, celltype, params): self.set_geometry(p_dend) # biophysics - self._biophysics(p_all) + self.set_biophysics(p_all) # insert dipole yscale = self.secs()[3] @@ -387,7 +387,7 @@ def secs(self): ] return sec_pts, sec_lens, sec_diams, sec_scales, topology - def _biophysics(self, p_all): + def set_biophysics(self, p_all): """Adds biophysics to soma.""" # Insert 'hh2' mechanism @@ -529,7 +529,7 @@ def _get_soma_props(self, pos, p_all): 'name': 'L5Pyr', } - def _biophysics(self, p_all): + def set_biophysics(self, p_all): "Set the biophysics for the default Pyramidal cell." # Insert 'hh2' mechanism