Skip to content

Commit e7ef15c

Browse files
committed
Always return a string
1 parent dfafe66 commit e7ef15c

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

netpyne_ui/netpyne_geppetto.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -217,28 +217,28 @@ def getNetPyNE2DNetPlot(self):
217217
fig = analysis.plot2Dnet(showFig=False, **args)
218218
if fig==-1:
219219
return fig
220-
return ui.getSVG(fig)
220+
return ui.getSVG(fig).__str__()
221221

222222
def getNetPyNEShapePlot(self):
223223
args = self.getPlotSettings('plotShape')
224224
fig = analysis.plotShape(showFig=False, **args)
225225
if fig==-1:
226226
return fig
227-
return ui.getSVG(fig)
227+
return ui.getSVG(fig).__str__()
228228

229229
def getNetPyNEConnectionsPlot(self):
230230
args = self.getPlotSettings('plotConn')
231231
fig = analysis.plotConn(showFig=False, **args)
232232
if fig==-1:
233233
return fig
234-
return ui.getSVG(fig)
234+
return ui.getSVG(fig).__str__()
235235

236236
def getNetPyNERasterPlot(self):
237237
args = self.getPlotSettings('plotRaster')
238238
fig = analysis.plotRaster(showFig=False, **args)
239239
if fig==-1:
240240
return fig
241-
return ui.getSVG(fig)
241+
return ui.getSVG(fig).__str__()
242242

243243
def getNetPyNETracesPlot(self):
244244
args = self.getPlotSettings('plotTraces')
@@ -274,7 +274,7 @@ def getNetPyNEGrangerPlot(self):
274274
return fig
275275
else:
276276
fig=fig[-1]
277-
return ui.getSVG(fig)
277+
return ui.getSVG(fig).__str__()
278278

279279
def getNetPyNERatePSDPlot(self):
280280
args = self.getPlotSettings('plotRatePSD')
@@ -294,7 +294,7 @@ def getNetPyNELFPTimeSeriesPlot(self):
294294
if fig==-1:
295295
return fig
296296
else:
297-
return ui.getSVG(fig[0][0])
297+
return ui.getSVG(fig[0][0]).__str__()
298298

299299
def getNetPyNELFPPSDPlot(self):
300300
args = self.getPlotSettings('plotLFP')
@@ -338,7 +338,7 @@ def getNetPyNERxDConcentrationPlot(self):
338338
if fig==-1:
339339
return fig
340340
else:
341-
return ui.getSVG(fig)
341+
return ui.getSVG(fig).__str__()
342342

343343
def getAvailablePops(self):
344344
return netParams.popParams.keys()

0 commit comments

Comments
 (0)