Skip to content

Commit 2e1486e

Browse files
committed
#NETPYNE-117 updating only available plots
1 parent fe6a399 commit 2e1486e

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

netpyne_ui/netpyne_geppetto.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,15 @@ def checkAvailablePlots(self):
843843
def getPlot(self, plotName, LFPflavour, theme='gui'):
844844
try:
845845
with redirect_stdout(sys.__stdout__):
846+
availablePlots = self.checkAvailablePlots()
847+
checkCondition = False
848+
if plotName.replace('iplot', 'plot') in availablePlots.keys():
849+
checkCondition = availablePlots[plotName.replace('iplot', 'plot')]
850+
851+
if checkCondition is False:
852+
logging.info("Plot not available")
853+
return -1
854+
846855
args = self.getPlotSettings(plotName)
847856
if LFPflavour:
848857
args['plots'] = [LFPflavour]

0 commit comments

Comments
 (0)