Skip to content

Commit

Permalink
MAINT: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmainak committed Apr 29, 2021
1 parent fd936ef commit 5ad6c81
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions hnn_core/pyramidal.py
Expand Up @@ -202,19 +202,12 @@ def create_dends(self, p_dend_props):
name=self.name + '_' + key) # create dend
# apical: 0--4; basal: 5--7
self.list_dend = [self.dends[key] for key in
['apical_trunk', 'apical_oblique', 'apical_1',
'apical_2', 'apical_tuft', 'basal_1', 'basal_2',
'basal_3'] if key in self.dends]
self.section_names() if key in self.dends]
self.sect_loc['proximal'] = ['apicaloblique', 'basal2', 'basal3']
self.sect_loc['distal'] = ['apicaltuft']

def get_sections(self):
ls = [self.soma]
for key in ['apical_trunk', 'apical_1', 'apical_2', 'apical_tuft',
'apical_oblique', 'basal_1', 'basal_2', 'basal_3']:
if key in self.dends:
ls.append(self.dends[key])
return ls
return [self.soma] + list(self.dends.values())

def _synapse_create(self, p_syn):
"""Creates synapses onto this cell."""
Expand Down

0 comments on commit 5ad6c81

Please sign in to comment.