Skip to content

Commit f0994b3

Browse files
committed
disable mpld3.show
1 parent 29f54ed commit f0994b3

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

findSim.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,12 @@ def displayPlots( self, fname, modelLookup, stim, hideSubplots, exptType ):
296296
elms = modelLookup[i]
297297
for j in elms:
298298
pp = PlotPanel( self, exptType, xlabel = j.name +'('+stim.quantityUnits+')' )
299-
pp.plotme( fname, pp.ylabel, joinSimPoints = True )
299+
#pp.plotme( fname, pp.ylabel, joinSimPoints = True )
300+
try:
301+
pp.plotme( fname, pp.ylabel, joinSimPoints = True )
302+
except Exception as e:
303+
print('Warning: displayPlot: Failed to plot '
304+
'%s due to "%s"' % (fname,e))
300305
elif "barchart" in exptType:
301306
for i in self.entities:
302307
elms = modelLookup[i]
@@ -1610,9 +1615,9 @@ def innerMain( script, modelFile = "model/synSynth7.g", dumpFname = "", paramFna
16101615
pyplot.figure(1)
16111616
i.displayPlots( script, model.modelLookup, stims[0], hideSubplots, expt.exptType )
16121617

1613-
#pyplot.show()
1618+
pyplot.show()
16141619
pyplot_fig = mpld3.fig_to_html(pyplot.figure(1))
1615-
mpld3.show()
1620+
#mpld3.show()
16161621

16171622
moose.delete( modelId )
16181623
if moose.exists( '/library' ):

0 commit comments

Comments
 (0)