Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions netpyne_ui/netpyne_geppetto.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ def getNetPyNEShapePlot(self):
fig = analysis.plotShape(showFig=False, **args)
if fig==-1:
return fig
return ui.getSVG(fig)
svgs = []
svgs.append(ui.getSVG(fig))
return svgs.__str__()

def getNetPyNEConnectionsPlot(self):
args = self.getPlotSettings('plotConn')
Expand Down Expand Up @@ -346,17 +348,19 @@ def getAvailablePops(self):
def getAvailableCellModels(self):
cellModels = set([])
for p in netParams.popParams:
cm = netParams.popParams[p]['cellModel']
if cm not in cellModels:
cellModels.add(cm)
if 'cellModel' in netParams.popParams[p]:
cm = netParams.popParams[p]['cellModel']
if cm not in cellModels:
cellModels.add(cm)
return cellModels

def getAvailableCellTypes(self):
cellTypes = set([])
for p in netParams.popParams:
ct = netParams.popParams[p]['cellType']
if ct not in cellTypes:
cellTypes.add(ct)
if 'cellType' in netParams.popParams[p]:
ct = netParams.popParams[p]['cellType']
if ct not in cellTypes:
cellTypes.add(ct)
return cellTypes

def getAvailableSections(self):
Expand Down