Skip to content

Commit 4ffab77

Browse files
author
rodriguez-facundo
committed
merge with development
1 parent 9b05f08 commit 4ffab77

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

netpyne_ui/netpyne_geppetto.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -425,18 +425,19 @@ def getMechParams(self, mechanism):
425425
def getAvailablePlots(self):
426426
plots = ["plotRaster", "plotSpikeHist", "plotSpikeStats","plotRatePSD", "plotTraces", "plotLFP", "plotShape", "plot2Dnet", "plotConn", "granger"]
427427
return [plot for plot in plots if plot not in list(self.simConfig.analysis.keys())]
428-
429-
return [plot for plot in plots if plot not in simConfig.analysis.keys()]
430-
428+
431429
def getGIDs(self):
432430
# pop sizes and gids returned in a dict
433431
out = {}
434-
for key in netParams.popParams.keys():
435-
if 'numCells' in netParams.popParams[key]:
436-
out[key] = netParams.popParams[key]['numCells']
437-
else:
438-
out[key] = 0
439-
out['gids'] = int(np.sum([v for k, v in out.items()]))
432+
with redirect_stdout(sys.__stdout__):
433+
for key in self.netParams.popParams.keys():
434+
if 'numCells' in self.netParams.popParams[key]:
435+
out[key] = self.netParams.popParams[key]['numCells']
436+
else:
437+
out[key] = 0
438+
439+
out['gids'] = int(np.sum([v for k, v in list(out.items())]))
440+
440441
return out
441442

442443
def deleteParam(self, paramToDel):

0 commit comments

Comments
 (0)