Skip to content

Commit 6678e02

Browse files
committed
#NETPYNE-119: changes as per PR review
1 parent cf2b599 commit 6678e02

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

netpyne_ui/netpyne_geppetto.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -844,12 +844,10 @@ def getPlot(self, plotName, LFPflavour, theme='gui'):
844844
try:
845845
with redirect_stdout(sys.__stdout__):
846846
availablePlots = self.checkAvailablePlots()
847-
checkCondition = False
848-
if plotName.replace('iplot', 'plot') in availablePlots.keys():
849-
checkCondition = availablePlots[plotName.replace('iplot', 'plot')]
847+
checkCondition = availablePlots.get(plotName.replace('iplot', 'plot'), False)
850848

851849
if checkCondition is False:
852-
logging.info("Plot not available")
850+
logging.info("Plot " + plotName + " not available")
853851
return -1
854852

855853
args = self.getPlotSettings(plotName)

0 commit comments

Comments
 (0)