File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -348,17 +348,19 @@ def getAvailablePops(self):
348348 def getAvailableCellModels (self ):
349349 cellModels = set ([])
350350 for p in netParams .popParams :
351- cm = netParams .popParams [p ]['cellModel' ]
352- if cm not in cellModels :
353- cellModels .add (cm )
351+ if 'cellModel' in netParams .popParams [p ]:
352+ cm = netParams .popParams [p ]['cellModel' ]
353+ if cm not in cellModels :
354+ cellModels .add (cm )
354355 return cellModels
355356
356357 def getAvailableCellTypes (self ):
357358 cellTypes = set ([])
358359 for p in netParams .popParams :
359- ct = netParams .popParams [p ]['cellType' ]
360- if ct not in cellTypes :
361- cellTypes .add (ct )
360+ if 'celltype' in netParams .popParams [p ]:
361+ ct = netParams .popParams [p ]['cellType' ]
362+ if ct not in cellTypes :
363+ cellTypes .add (ct )
362364 return cellTypes
363365
364366 def getAvailableSections (self ):
You can’t perform that action at this time.
0 commit comments