Skip to content

Commit bcdd9c8

Browse files
author
Facu_r
authored
Simplify code
1 parent 8c47e91 commit bcdd9c8

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

netpyne_ui/netpyne_geppetto.py

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

346346
def getAvailableSections(self):
347-
sections = set([])
347+
sections = []
348348
for cellRule in netParams.cellParams:
349-
section = set(netParams.cellParams[cellRule]['secs'].keys())
350-
sections = sections.union(section)
351-
352-
return list(sections)
349+
sections += netParams.cellParams[cellRule]['secs'].keys()
350+
return list(set(sections))
353351

354352
def getAvailableStimSources(self):
355353
return netParams.stimSourceParams.keys()

0 commit comments

Comments
 (0)