Skip to content

Commit bdace7f

Browse files
author
facu.r
committed
replace list for dictionary
1 parent bcdd9c8 commit bdace7f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

netpyne_ui/netpyne_geppetto.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,10 @@ def getAvailableCellTypes(self):
344344
return cellTypes
345345

346346
def getAvailableSections(self):
347-
sections = []
347+
sections = {}
348348
for cellRule in netParams.cellParams:
349-
sections += netParams.cellParams[cellRule]['secs'].keys()
350-
return list(set(sections))
349+
sections[cellRule] = netParams.cellParams[cellRule]['secs'].keys()
350+
return sections
351351

352352
def getAvailableStimSources(self):
353353
return netParams.stimSourceParams.keys()

0 commit comments

Comments
 (0)