Skip to content

Commit

Permalink
ENH: simplify more
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmainak committed Apr 29, 2021
1 parent 5ad6c81 commit 27fa011
Showing 1 changed file with 5 additions and 34 deletions.
39 changes: 5 additions & 34 deletions hnn_core/pyramidal.py
Expand Up @@ -218,29 +218,11 @@ def _synapse_create(self, p_syn):
**p_syn['gabab'])

# Dendritic synapses
self.synapses['apicaloblique_ampa'] = self.syn_create(
self.dends['apical_oblique'](0.5), **p_syn['ampa'])
self.synapses['apicaloblique_nmda'] = self.syn_create(
self.dends['apical_oblique'](0.5), **p_syn['nmda'])

self.synapses['basal2_ampa'] = self.syn_create(
self.dends['basal_2'](0.5), **p_syn['ampa'])
self.synapses['basal2_nmda'] = self.syn_create(
self.dends['basal_2'](0.5), **p_syn['nmda'])

self.synapses['basal3_ampa'] = self.syn_create(
self.dends['basal_3'](0.5), **p_syn['ampa'])
self.synapses['basal3_nmda'] = self.syn_create(
self.dends['basal_3'](0.5), **p_syn['nmda'])

self.synapses['apicaltuft_ampa'] = self.syn_create(
self.dends['apical_tuft'](0.5), **p_syn['ampa'])
self.synapses['apicaltuft_nmda'] = self.syn_create(
self.dends['apical_tuft'](0.5), **p_syn['nmda'])

if self.name == 'L5Pyr':
self.synapses['apicaltuft_gabaa'] = self.syn_create(
self.dends['apical_tuft'](0.5), **p_syn['gabaa'])
for sec in self.section_names():
for receptor in p_syn:
syn_key = sec.replace('_', '') + '_' + receptor
self.synapses[syn_key] = self.syn_create(
self.dends[sec](0.5), **p_syn[receptor])


class L2Pyr(Pyr):
Expand Down Expand Up @@ -343,17 +325,6 @@ def section_names(self):
def secs(self):
return _secs_L5Pyr()

def _get_soma_props(self, pos, p_all):
"""Sets somatic properties. Returns dictionary."""
return {
'pos': pos,
'L': p_all['L5Pyr_soma_L'],
'diam': p_all['L5Pyr_soma_diam'],
'cm': p_all['L5Pyr_soma_cm'],
'Ra': p_all['L5Pyr_soma_Ra'],
'name': 'L5Pyr',
}

def set_biophysics(self, p_all):
"Set the biophysics for the default Pyramidal cell."

Expand Down

0 comments on commit 27fa011

Please sign in to comment.